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 graphentityGraph
- entity graph
- Since:
- JPA 2.1