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
      java.lang.String value
      Specifies the name of the corresponding attribute.
    • Optional Element Summary

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

      • value

        java.lang.String value
        Specifies the name of the corresponding attribute.
      • subgraph

        java.lang.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.
        Default:
        ""
      • keySubgraph

        java.lang.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.
        Default:
        ""