Class HibernateEntityManagerProvider
- java.lang.Object
-
- com.atlassian.confluence.impl.hibernate.HibernateEntityManagerProvider
-
- All Implemented Interfaces:
EntityManagerProvider
public final class HibernateEntityManagerProvider extends Object implements EntityManagerProvider
Provides access to the current hibernate Session object.- Since:
- 6.1.0
-
-
Constructor Summary
Constructors Constructor Description HibernateEntityManagerProvider(org.hibernate.SessionFactory sessionFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.persistence.EntityManager
getEntityManager()
Get the JPA EntityManager object from the current request's transaction.
-
-
-
Method Detail
-
getEntityManager
public javax.persistence.EntityManager getEntityManager()
Description copied from interface:EntityManagerProvider
Get the JPA EntityManager object from the current request's transaction.- Specified by:
getEntityManager
in interfaceEntityManagerProvider
-
-