JPA - Persistence Context

> JPA - Java Persistence API (JPA)

1 - About

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.


3 - Lifetime

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).

4 - Documentation / Reference