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 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 interface HibernateSessionHolder
    • openSession

      public org.hibernate.Session openSession()
      Specified by:
      openSession in interface HibernateSessionHolder