Jakarta Persistence (JPA) Method
void addNamedEntityGraph(
String graphName,
EntityGraph<T> entityGraph
)
Add a named copy of the given
EntityGraph<T> to this EntityManagerFactory. If an entity graph with the given name already exists, it is replaced.- Parameters:
graphName- name for the entity graphentityGraph- entity graph
- Since:
- Jakarta Persistence (JPA) 2.1