Class JpaHibernateSessionHolderImpl
java.lang.Object
com.foreach.across.modules.hibernate.jpa.services.JpaHibernateSessionHolderImpl
- All Implemented Interfaces:
HibernateSessionHolder
@Component
public class JpaHibernateSessionHolderImpl
extends Object
implements HibernateSessionHolder
- Author:
- Andy Somers
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.hibernate.Session
org.hibernate.Session
void
setEntityManagerFactory
(jakarta.persistence.EntityManagerFactory entityManagerFactory)
-
Constructor Details
-
JpaHibernateSessionHolderImpl
public JpaHibernateSessionHolderImpl()
-
-
Method Details
-
setEntityManagerFactory
@Autowired public void setEntityManagerFactory(jakarta.persistence.EntityManagerFactory entityManagerFactory) -
getCurrentSession
public org.hibernate.Session getCurrentSession()- Specified by:
getCurrentSession
in interfaceHibernateSessionHolder
-
openSession
public org.hibernate.Session openSession()- Specified by:
openSession
in interfaceHibernateSessionHolder
-