Uses of Interface
jakarta.persistence.EntityGraph
-
Packages that use EntityGraph Package Description jakarta.persistence Jakarta Persistence is the API for the management for persistence and object/relational mapping. -
-
Uses of EntityGraph in jakarta.persistence
Methods in jakarta.persistence that return EntityGraph Modifier and Type Method Description <T> EntityGraph<T>
EntityManager. createEntityGraph(java.lang.Class<T> rootType)
Create a new mutableEntityGraph
, allowing dynamic definition of an entity graph.EntityGraph<?>
EntityManager. createEntityGraph(java.lang.String graphName)
Obtain a mutable copy of a namedEntityGraph
, or return null if there is no entity graph with the given name.EntityGraph<?>
EntityManager. getEntityGraph(java.lang.String graphName)
Obtain a namedEntityGraph
.Methods in jakarta.persistence that return types with arguments of type EntityGraph Modifier and Type Method Description <T> java.util.List<EntityGraph<? super T>>
EntityManager. getEntityGraphs(java.lang.Class<T> entityClass)
Return all namedEntityGraph
s that are defined for the given entity class type.<E> java.util.Map<java.lang.String,EntityGraph<? extends E>>
EntityManagerFactory. getNamedEntityGraphs(java.lang.Class<E> entityType)
A map keyed by graph name, containing every named entity graph whose entity type is assignable to the given Java type.Methods in jakarta.persistence with parameters of type EntityGraph Modifier and Type Method Description <T> void
EntityManagerFactory. addNamedEntityGraph(java.lang.String graphName, EntityGraph<T> entityGraph)
Add a named copy of the givenEntityGraph
to thisEntityManagerFactory
.<T> T
EntityManager. find(EntityGraph<T> entityGraph, java.lang.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.
-