Class JTASessionOpener
- java.lang.Object
-
- io.quarkus.hibernate.orm.runtime.session.JTASessionOpener
-
public class JTASessionOpener extends Object
A delegate for opening a JTA-enabled Hibernate ORM session.The main purpose of this class is to cache session options when possible; if we didn't care about caching, we could just replace any call to
-
-
Constructor Summary
Constructors Constructor Description JTASessionOpener(org.hibernate.SessionFactory sessionFactory, org.hibernate.SessionBuilder cachedOptions)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static JTASessionOpener
create(org.hibernate.SessionFactory sessionFactory)
org.hibernate.Session
openSession()
-
-
-
Method Detail
-
create
public static JTASessionOpener create(org.hibernate.SessionFactory sessionFactory)
-
openSession
public org.hibernate.Session openSession()
-
-