Chapter 3. Persistence Contexts
new, or transient - the entity has just been instantiated and is not associated with a persistence context. It has no persistent representation in the ...
3. Persistence Context
When a persistence context ends, previously-managed entities become detached. A detached entity is no longer under the control of the EntityManager, and ...
EntityManager
TransactionRequiredException - if invoked on a container-managed entity manager of type PersistenceContextType.TRANSACTION and there is no transaction....