Hello folks,
I’m migrating to Hibernate from OpenJPA, and wondering if Hibernate provides this feature I have become accustomed to.
It is a static method that finds the EntityManager that owns an entity (if any).
public static OpenJPAEntityManager getEntityManager(Object possibleEntity) …
I know it’s bad form, but this method is a convenience. Does something like that exist in Hibernate?
Thanks