Annotation Type NamedAttributeNode


@Target({}) @Retention(RUNTIME) public @interface NamedAttributeNode
The NamedAttributeNode annotation is used to specify an attribute node of within an entity graph or subgraph.
Since:
JPA 2.1
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Specifies the name of the corresponding attribute.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Refers to a NamedSubgraph specification that further characterizes an attribute node corresponding to the key of a Map-valued attribute.
    Refers to a NamedSubgraph specification that further characterizes an attribute node corresponding to a managed type (entity or embeddable).
  • Element Details

    • value

      String value
      Specifies the name of the corresponding attribute.
      Returns:
      value
    • subgraph

      String subgraph
      Refers to a NamedSubgraph specification that further characterizes an attribute node corresponding to a managed type (entity or embeddable). The value of the subgraph element must correspond to the name used for the subgraph in the NamedSubgraph element. If the referenced attribute is an entity which has entity subclasses, there may be more than one NamedSubgraph element with this name, and the subgraph element is considered to refer to all of these.
      Returns:
      subgraph
      Default:
      ""
    • keySubgraph

      String keySubgraph
      Refers to a NamedSubgraph specification that further characterizes an attribute node corresponding to the key of a Map-valued attribute. The value of the the keySubgraph element must correspond to the name used for the subgraph in the NamedSubgraph element. If the referenced attribute is an entity which has entity subclasses, there may be more than one NamedSubgraph element with this name, and the keySubgraph element is considered to refer to all of these.
      Returns:
      key subgraph
      Default:
      ""