JPA - Persistence Context


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:

  • (default) a transaction (transaction-scoped persistence context),
  • a lifetime that extends beyond that of a single transaction (extended persistence context).

Documentation / Reference

Powered by ComboStrap