Class JpaPersistOptions


  • public final class JpaPersistOptions
    extends Object
    Options that configure how the JPA persist service will work.
    Since:
    6.0
    • Method Detail

      • getAutoBeginWorkOnEntityManagerCreation

        public boolean getAutoBeginWorkOnEntityManagerCreation()
        Returns true if the work unit should automatically begin when the EntityManager is created, if it hasn't already begun.

        This defaults to false because it's not safe, as careless usage can lead to leaking sessions.