Uses of Interface
jakarta.persistence.FindOption
Package
Description
Jakarta Persistence is the API for the management for persistence and object/relational mapping.
-
Uses of FindOption in jakarta.persistence
Modifier and TypeClassDescriptionenum
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.enum
Specifies how theEntityManager
interacts with the second-level cache when data is read from the database and when data is written to the database.enum
Enumerates the kinds of optimistic or pessimistic lock which may be obtained on an entity instance.enum
Defines the values of thejakarta.persistence.lock.scope
property for pessimistic locking.class
Specifies a timeout for a database request.Modifier and TypeMethodDescription<T> T
EntityManager.find
(EntityGraph<T> entityGraph, Object primaryKey, FindOption... options) Find an instance of the root entity of the givenEntityGraph
by primary key, using the specified options, and interpreting theEntityGraph
as a load graph.<T> T
EntityManager.find
(Class<T> entityClass, Object primaryKey, FindOption... options) Find an instance of the given entity class by primary key, using the specified options.