Package jakarta.persistence
Annotation Interface NamedSubgraph
A 
NamedSubgraph is a member element of a NamedEntityGraph.
 The NamedSubgraph is only referenced from within its containing
 NamedEntityGraph and cannot be referenced independently. It is
 referenced by its name() from a NamedAttributeNode element
 of the NamedEntityGraph.- Since:
 - 2.1
 - See Also:
 
- 
Required Element Summary
Required ElementsModifier and TypeRequired ElementDescription(Required) The list of the attributes of the class that must be included.(Required) The name of the subgraph as referenced from a NamedAttributeNode element. - 
Optional Element Summary
Optional Elements 
- 
Element Details
- 
name
String name(Required) The name of the subgraph as referenced from a NamedAttributeNode element. - 
type
Class<?> type(Optional) The type represented by this subgraph. The element must be specified when this subgraph is extending a definition on behalf of a subclass.- Default:
 void.class
 - 
attributeNodes
NamedAttributeNode[] attributeNodes(Required) The list of the attributes of the class that must be included. If the named subgraph corresponds to a subclass of the class referenced by the corresponding attribute node, then only subclass-specific attributes are listed. 
 -