EclipseLink 2.4.2, build 'v20130514-5956486' API Reference

org.eclipse.persistence.annotations
Annotation Type NamedEntityGraph


@Target(value=TYPE)
@Retention(value=RUNTIME)
public @interface NamedEntityGraph

A NamedEntityGraph allows for the static definition of an entity graph. Once defined this graph may be used as a template for persistence operations.

See Also:
org.eclipse.persistence.jpa.NamedEntityGraph
Author:
Gordon Yorke
Since:
EclipseLink 2.4.2

Required Element Summary
 NamedAttributeNode[] attributes
          (Required) list of attributes that exist in this sub-graph.
 
Optional Element Summary
 java.lang.String name
          (Optional) The name of the sub-graph.
 NamedSubgraph[] subclassSubgraphs
           
 NamedSubgraph[] subgraphs
          (Optional) This is a list of ManagedComponents that exist in the sub-graph.
 

Element Detail

attributes

public abstract NamedAttributeNode[] attributes
(Required) list of attributes that exist in this sub-graph.

name

public abstract java.lang.String name
(Optional) The name of the sub-graph. Defaults to the entity name of the root entity.

Default:
""

subgraphs

public abstract NamedSubgraph[] subgraphs
(Optional) This is a list of ManagedComponents that exist in the sub-graph. They will be referenced by name from other component definitions.

Default:
{}

subclassSubgraphs

public abstract NamedSubgraph[] subclassSubgraphs
Default:
{}

EclipseLink 2.4.2, build 'v20130514-5956486' API Reference