A persistence context is a set of entity instances in which for any persistent entity identity there is a unique entity instance.
The lifetime of a container-managed persistence context can either be scoped to:
- (default) a transaction (transaction-scoped persistence context),
- a lifetime that extends beyond that of a single transaction (extended persistence context).
Documentation / Reference
- 3.3 Persistence Context Lifetime from the specifications