3.3.1.2. openjpa.AutoDetach
Property name: openjpa.AutoDetach
Configuration API: org.apache.openjpa.conf.OpenJPAConfiguration.getAutoDetach
Resource adaptor config-property: AutoDetach
Default: - null
Possible values: close, commit, nontx-read, rollback, none
Description: A comma-separated list of events when managed instances will be automatically detached.
When using the OpenJPA EntityManager this defaults to close, and rollback per the JPA spec.
If you need to change this setting, you need to set it directly on an instantiated EntityManager.
none option is exclusive.
It can not be specified with any other option. none option implies that managed objects will not be detached from the persistence context, the second-class object fields such as collections or date will not be proxied unlike normal circumstances.
This option is relevant for specific use cases where the user application would not refer to the managed objects after the transaction and/or the context ends e.g.
typical batch insertion scenario.