Uses of Package
jakarta.persistence
Package
Description
Jakarta Persistence is the API for the management for persistence and object/relational mapping.
Jakarta Persistence Criteria API
SPI for Jakarta Persistence providers
-
ClassDescriptionUsed with the
Access
annotation to specify an access type to be applied to an entity class, mapped superclass, or embeddable class, or to a specific attribute of such a class.Represents an attribute node of an entity graph.Interface used to interact with the second-level cache.Specifies how theEntityManager
interacts with the second-level cache when data is read from the database via theEntityManager.find(java.lang.Class<T>, java.lang.Object)
methods and execution of queries.Specifies how theEntityManager
interacts with the second-level cache when data is read from the database and when data is written to the database.Defines the set of cascadable operations that are propagated to the associated entity.An executable action which makes use of a native database connection.A function which makes use of a native database connection to compute a result.Used to control the application of a constraint.Defines supported types of the discriminator column.This type represents the root of an entity graph that will be used as a template to define the attribute nodes and boundaries of a graph of entities and entity relationships.Interface used to interact with the persistence context.Interface used to interact with the persistence unit, and to create new instances ofEntityManager
.Interface used to control transactions on resource-local entity managers.Enumerates available options for mapping enumerated types.Defines strategies for fetching data from the database.An option influencing the behavior ofEntityManager.find(java.lang.Class<T>, java.lang.Object)
.Enumerates flush modes recognized by theEntityManager
.Enumerates the defined primary key generation strategies.Declares operations common toEntityGraph
andSubgraph
.Enumerated the options for mapping entity inheritance.Enumerates the kinds of optimistic or pessimistic lock which may be obtained on an entity instance.An option influencing the behavior ofEntityManager.lock(java.lang.Object, jakarta.persistence.LockModeType)
.Type for query parameter objects.Specifies the mode of a parameter of a stored procedure query.Represents a configuration of a persistence unit, allowing programmatic creation of anEntityManagerFactory
.Specifies whether a transaction-scoped or extended persistence context is to be used inPersistenceContext
.Thrown by the persistence provider when a problem occurs.Enumerates the possible approaches to transaction management in Jakarta Persistence.Utility interface between the application and the persistence provider managing the persistence unit.Utility interface between the application and the persistence provider(s).Defines the values of thejakarta.persistence.lock.scope
property for pessimistic locking.Interface used to control query execution.An option influencing the behavior ofEntityManager.refresh(java.lang.Object)
.Allows programmatic schema creation, schema validation, data cleanup, and schema cleanup for entities belonging to a certain persistence unit.Thrown when schema validation fails.Specifies how the provider must use a second-level cache for the persistence unit.Interface used to control stored procedure query execution.This type represents a subgraph for an attribute node that corresponds to a managed type.Specifies whether the persistence context is always automatically synchronized with the current transaction or whether the persistence context must be explicitly joined to the current transaction by means of theEntityManager.joinTransaction()
method.Deprecated.Specifies a timeout for a database request.TheTupleElement
interface defines an element that is returned in a query result tuple.Interface used to control the execution of typed queries.A reference to a named query declared via theNamedQuery
orNamedNativeQuery
annotations.The validation mode to be used by the provider for the persistence unit. -
ClassDescriptionType for query parameter objects.Interface for extracting the elements of a query result tuple.The
TupleElement
interface defines an element that is returned in a query result tuple. -
ClassDescriptionInterface used to interact with the persistence unit, and to create new instances of
EntityManager
.Represents a configuration of a persistence unit, allowing programmatic creation of anEntityManagerFactory
.Specifies how the provider must use a second-level cache for the persistence unit.The validation mode to be used by the provider for the persistence unit.
java.time
.