|
|
• When the transaction that a transaction-scoped persistence context is associated with
commits, all of the entities managed by the persistence context become detached.
• If an application-managed persistence context is closed, all of its managed entities
become detached.
• If a stateful session bean with an extended persistence context is removed, all of its
managed entities become detached.
• If the clear() method of an entity manager is used, it detaches all of the entities in the
persistence context managed by that entity manager.
• When transaction rollback occurs, it causes all entities in all persistence contexts associated
with the transaction to become detached.
• When an entity is serialized, the serialized form of the entity is detached from its
persistence context. |
|