## Uses of Interface
javax.persistence.EntityGraph

- Packages that use EntityGraph
  Package | Description
  --- | ---
  javax.persistence | Java Persistence is the API for the management for persistence and object/relational mapping.

- - ### Uses of EntityGraph in javax.persistence

    Methods in javax.persistence that return EntityGraph
    Modifier and Type | Method and Description
    --- | ---
    `<T> EntityGraph<T>` | EntityManager.`createEntityGraph(Class<T> rootType)` Return a mutable EntityGraph that can be used to dynamically create an EntityGraph.
    `EntityGraph<?>` | EntityManager.`createEntityGraph(String graphName)` Return a mutable copy of the named EntityGraph.
    `EntityGraph<?>` | EntityManager.`getEntityGraph(String graphName)` Return a named EntityGraph.

    Methods in javax.persistence that return types with arguments of type EntityGraph
    Modifier and Type | Method and Description
    --- | ---
    `<T> List<EntityGraph<? super T>>` | EntityManager.`getEntityGraphs(Class<T> entityClass)` Return all named EntityGraphs that have been defined for the provided class type.

    Methods in javax.persistence with parameters of type EntityGraph
    Modifier and Type | Method and Description
    --- | ---
    `<T> void` | EntityManagerFactory.`addNamedEntityGraph(String graphName, EntityGraph<T> entityGraph)` Add a named copy of the EntityGraph to the EntityManagerFactory.

Copyright © 1996-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.