A reference to a named entity graph may be obtained by calling
EntityManager#getEntityGraph(String), and may be passed to
EntityManager#find(EntityGraph, Object, FindOption..
| Modifier and Type | Method and Description |
|---|---|
| public NamedAttributeNode[] | |
| public boolean | includeAllAttributes()
(Optional) Includes all of the attributes of the annotated entity class as attribute nodes in the NamedEntityGraph without the need to explicitly list them. |
| public String | name()
(Optional) The name used to identify the entity graph in calls to
|
| public NamedSubgraph[] | subclassSubgraphs()
(Optional) A list of subgraphs that will add additional attributes for subclasses of the annotated entity class to the entity graph. |
| public NamedSubgraph[] |
| attributeNodes | back to summary |
|---|---|
| public NamedAttributeNode[] attributeNodes() (Optional) A list of attributes of the entity that are included in this graph. | |
| includeAllAttributes | back to summary |
|---|---|
| public boolean includeAllAttributes() (Optional) Includes all of the attributes of the annotated entity class as attribute nodes in the NamedEntityGraph without the need to explicitly list them. Included attributes can still be fully specified by an attribute node referencing a subgraph. | |
| name | back to summary |
|---|---|
| public String name() (Optional) The name used to identify the entity graph in calls to
| |
| subclassSubgraphs | back to summary |
|---|---|
| public NamedSubgraph[] subclassSubgraphs() (Optional) A list of subgraphs that will add additional attributes for subclasses of the annotated entity class to the entity graph. Specified attributes from superclasses are included in subclasses. | |
| subgraphs | back to summary |
|---|---|
| public NamedSubgraph[] subgraphs() (Optional) A list of subgraphs that are included in the entity graph. These are referenced by name from NamedAttributeNode definitions. | |