public @interface NamedEntityGraph
The NamedEntityGraph annotation is used to define a named entity graph. The entity graph may be retrieved by name
using the EntityManagerFactory interface. The entity graph may be used to specify the path and boundaries for find
operations or queries. The NamedEntityGraph annotation must be applied to the entity class that forms the root of
the corresponding graph of entities.
The subgraphs element specifies a list of subgraphs, further specifying attributes that are managed types.
public abstract java.lang.String name
The name element is used to refer to the entity graph. It defaults to the entity name of the root entity to
which the annotation is applied. Entity graph names must be unique within the persistence unit.
The attributeNodes element lists attributes of the annotated entity class that are to be included in the
public abstract boolean includeAllAttributes
The includeAllAttributes element specifies that all attributes of the annotated entity class are to be
included in the entity graph. An attributeNode element may still be used in conjunction with this element to
specify a subgraph for the attribute.