Class SessionHelper
java.lang.Object
org.hibernate.search.mapper.orm.common.spi.SessionHelper
A helper to abstract away all the complexity of wrapping sections of code in a session (and transaction).
Particularly useful for unit testing of code that abstracts away from Hibernate ORM sessions.
-
Constructor Summary
ConstructorsConstructorDescriptionSessionHelper
(org.hibernate.engine.spi.SessionFactoryImplementor sessionFactory, String tenantId) -
Method Summary
-
Constructor Details
-
SessionHelper
public SessionHelper(org.hibernate.engine.spi.SessionFactoryImplementor sessionFactory, String tenantId)
-
-
Method Details
-
openSession
public org.hibernate.engine.spi.SessionImplementor openSession()
-