JPA Method
in javax.persistence.EntityManagerFactory

void addNamedEntityGraph(
  String graphName, 
  EntityGraph<T> entityGraph
)


Add a named copy of the EntityGraph to the EntityManagerFactory. If an entity graph with the same name already exists, it is replaced.
Parameters:
graphName - name for the entity graph
entityGraph - entity graph
Since:
JPA 2.1