The NamedSubgraph annotation is used to further define an attribute node. It is referenced by its name from
the subgraph or keySubgraph element of a NamedAttributeNode element.
- Since:
- JPA 2.1
-
Required Element Summary
Required ElementsModifier and TypeRequired ElementDescriptionLists attributes of the class that must be included.The name element is the name used to reference the subgraph from a NamedAttributeNode definition. -
Optional Element Summary
Optional Elements
-
Element Details
-
name
String nameThe name element is the name used to reference the subgraph from a NamedAttributeNode definition. In the case of entity inheritance, multiple subgraph elements have the same name.- Returns:
- name
-
attributeNodes
NamedAttributeNode[] attributeNodesLists attributes of the class that must be included. If the subgraph corresponds to a subclass of the class referenced by the corresponding attribute node, only subclass-specific attributes are listed.- Returns:
- attribute nodes
-
-
-
type
Class typeThe type element must be specified when the subgraph corresponds to a subclass of the entity type corresponding to the referencing attribute node.- Returns:
- type
- Default:
- void.class
-