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