Annotation Interface NamedEntityGraph


@Repeatable(NamedEntityGraphs.class) @Target(TYPE) @Retention(RUNTIME) public @interface NamedEntityGraph
Defines a named entity graph. This annotation must be applied to the root entity of the graph, and specifies the limits of the graph of associated attributes and entities fetched when an operation which retrieves an instance or instances of the root entity is executed.

A reference to a named entity graph may be obtained by calling EntityManager.getEntityGraph(String), and may be passed to EntityManager.find(EntityGraph, Object, FindOption...).

Since:
2.1