Class JpaPersistOptions

  • public final class JpaPersistOptions
    extends Object
    Options that configure how the JPA persist service will work.
    • 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.