JPA - Persistence Context

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

  • 3.3 Persistence Context Lifetime from the specifications

Data Science
Data Analysis
Data Science
Linear Algebra Mathematics

Powered by ComboStrap