Class SpringEntityManagerSessionFactory

java.lang.Object
org.flowable.spring.SpringEntityManagerSessionFactory
All Implemented Interfaces:
SessionFactory

public class SpringEntityManagerSessionFactory extends Object implements SessionFactory
Session Factory for EntityManagerSession.

Must be used when the EntityManagerFactory is managed by Spring. This implementation will retrieve the EntityManager bound to the thread by Spring in case a transaction already started.

Author:
Joram Barrez
  • Field Details

    • entityManagerFactory

      protected jakarta.persistence.EntityManagerFactory entityManagerFactory
    • handleTransactions

      protected boolean handleTransactions
    • closeEntityManager

      protected boolean closeEntityManager
  • Constructor Details

    • SpringEntityManagerSessionFactory

      public SpringEntityManagerSessionFactory(Object entityManagerFactory, boolean handleTransactions, boolean closeEntityManager)
  • Method Details