A persistence context is a set of entity instances in which for any persistent entity identity there is a unique entity instance.
Within the persistence context, the entity instances and their operations are managed.
The lifetime of a container-managed persistence context can either be scoped to: