spring-framework / org.springframework.orm.hibernate5 / HibernateTransactionManager / <init>

<init>

HibernateTransactionManager()

Create a new HibernateTransactionManager instance. A SessionFactory has to be set to be able to use it.

See Also
#setSessionFactory

HibernateTransactionManager(sessionFactory: SessionFactory)

Create a new HibernateTransactionManager instance.

Parameters

sessionFactory - SessionFactory to manage transactions for