Class SessionHelper
- java.lang.Object
-
- org.hibernate.search.mapper.orm.common.spi.SessionHelper
-
public final class SessionHelper extends Object
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
Constructors Constructor Description SessionHelper(org.hibernate.engine.spi.SessionFactoryImplementor sessionFactory, String tenantId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.hibernate.engine.spi.SessionImplementor
openSession()
-
-
-
Constructor Detail
-
SessionHelper
public SessionHelper(org.hibernate.engine.spi.SessionFactoryImplementor sessionFactory, String tenantId)
-
-