Uses of Package
javax.persistence
Packages that use javax.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
-
Classes in javax.persistence used by javax.persistenceClassDescriptionUsed 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.Used as the value of thejavax.persistence.cache.retrieveMode
property to specify the behavior when data is retrieved by thefind
methods and by queries.Used as the value of thejavax.persistence.cache.storeMode
property to specify the behavior when data is read from the database and when data is committed into the database.Defines the set of cascadable operations that are propagated to the associated entity.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 entity manager factory for the persistence unit.Interface used to control transactions on resource-local entity managers.Defines mapping for enumerated types.Defines strategies for fetching data from the database.Flush mode setting.Defines the types of primary key generation strategies.Defines inheritance strategy options.Lock modes can be specified by means of passing aLockModeType
argument to one of theEntityManager
methods that take locks (lock
,find
, orrefresh
) or to theQuery.setLockMode()
orTypedQuery.setLockMode()
method.Type for query parameter objects.Specifies the mode of a parameter of a stored procedure query.Specifies whether a transaction-scoped or extended persistence context is to be used inPersistenceContext
.Thrown by the persistence provider when a problem occurs.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 thejavax.persistence.lock.scope
property for pessimistic locking.Interface used to control query execution.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.Type used to indicate a specific mapping ofjava.util.Date
orjava.util.Calendar
.TheTupleElement
interface defines an element that is returned in a query result tuple.Interface used to control the execution of typed queries.The validation mode to be used by the provider for the persistence unit. -
Classes in javax.persistence used by javax.persistence.criteriaClassDescriptionType 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. -
Classes in javax.persistence used by javax.persistence.spiClassDescriptionInterface used to interact with the entity manager factory for the persistence unit.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.