Class 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 Detail

      • JTASessionOpener

        public JTASessionOpener​(org.hibernate.SessionFactory sessionFactory,
                                org.hibernate.SessionBuilder<?> cachedOptions)
    • Method Detail

      • create

        public static JTASessionOpener create​(org.hibernate.SessionFactory sessionFactory)
      • openSession

        public org.hibernate.Session openSession()