-
@Target(value={}) @Retention(value=RUNTIME) public @interface NamedAttributeNode
ANamedAttributeNode
is a member element of aNamedEntityGraph
.- Since:
- Java Persistence 2.1
- See Also:
NamedEntityGraph
,NamedSubgraph
-
-
Required Element Summary
Required Elements Modifier and Type Required Element and Description String
value
(Required) The name of the attribute that must be included in the graph.
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element and Description String
keySubgraph
(Optional) If the attribute references a Map type, this element can be used to specify a subgraph for the Key in the case of an Entity key type.String
subgraph
(Optional) If the attribute references a managed type that has its own AttributeNodes, this element is used to refer to that NamedSubgraph definition.
-
-
-
Element Detail
-
value
public abstract String value
(Required) The name of the attribute that must be included in the graph.
-
-
-
subgraph
public abstract String subgraph
(Optional) If the attribute references a managed type that has its own AttributeNodes, this element is used to refer to that NamedSubgraph definition. If the target type has inheritance, multiple subgraphs can be specified. These additional subgraphs are intended to add subclass-specific attributes. Superclass subgraph entries will be merged into subclass subgraphs.The value of this element is the name of the subgraph as specified by the
name
element of the correspondingNamedSubgraph
element. If multiple subgraphs are specified due to inheritance, they are referenced by this name.- Default:
- ""
-
-
-
keySubgraph
public abstract String keySubgraph
(Optional) If the attribute references a Map type, this element can be used to specify a subgraph for the Key in the case of an Entity key type. A keySubgraph can not be specified without the Map attribute also being specified. If the target type has inheritance, multiple subgraphs can be specified. These additional subgraphs are intended to add subclass-specific attributes. Superclass subgraph entries will be merged into subclass subgraphs.The value of this element is the name of the key subgraph as specified by the
name
element of the correspondingNamedSubgraph
element. If multiple key subgraphs are specified due to inheritance, they are referenced by this name.- Default:
- ""
-
-
Traduction non disponible
Les API Java ne sont pas encore traduites en français sur l'infobrol. Seule la version anglaise est disponible pour l'instant.
Version en cache
21/08/2025 20:17:37 Cette version de la page est en cache (à la date du 21/08/2025 20:17:37) afin d'accélérer le traitement.Vous pouvez activer le mode utilisateur dans le menu en haut pour afficher la version plus récente de la page.
Document créé le 11/06/2005, dernière modification le 18/08/2025
Source du document imprimé : https://www.gaudry.be/java-api-javaee-rf-javax/persistence/namedattributenode.html
L'infobrol est un site personnel dont le contenu n'engage que moi. Le texte est mis à disposition sous licence CreativeCommons(BY-NC-SA). Plus d'info sur les conditions d'utilisation et sur l'auteur.
Références
Ces références et liens indiquent des documents consultés lors de la rédaction de cette page, ou qui peuvent apporter un complément d'information, mais les auteurs de ces sources ne peuvent être tenus responsables du contenu de cette page.
L'auteur de ce site est seul responsable de la manière dont sont présentés ici les différents concepts, et des libertés qui sont prises avec les ouvrages de référence. N'oubliez pas que vous devez croiser les informations de sources multiples afin de diminuer les risques d'erreurs.