Package javax.persistence
Annotation Type NamedSubgraph
-
@Target({}) @Retention(RUNTIME) public @interface NamedSubgraph
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 Elements Modifier and Type Required Element Description NamedAttributeNode[]attributeNodesLists attributes of the class that must be included.StringnameThe name element is the name used to reference the subgraph from a NamedAttributeNode definition.
-
-
-
-
attributeNodes
NamedAttributeNode[] attributeNodes
Lists 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
-
-