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[]
attributeNodes
Lists attributes of the class that must be included.java.lang.String
name
The name element is the name used to reference the subgraph from a NamedAttributeNode definition.
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description java.lang.Class
type
The type element must be specified when the subgraph corresponds to a subclass of the entity type corresponding to the referencing attribute node.
-
-
-
-
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.
-
-