EclipseLink 2.4.2, build 'v20130514-5956486' API Reference

org.eclipse.persistence.annotations
Annotation Type NamedSubgraph


@Target(value={})
@Retention(value=RUNTIME)
public @interface NamedSubgraph

A subgraph is a member of an NamedEntityGraph that represents a managed type. The NamedSubgraph is only referenced from within an NamedEntityGraph and can not be referenced on it's own. It is referenced by name from components of the NamedEntityGraph.

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

Required Element Summary
 java.lang.String name
          (Required) the name of the sub-graph.
 
Optional Element Summary
 NamedAttributeNode[] attributes
          (Optional) if this component references a managed type then this list is the attributes of that type that must be included.
 java.lang.Class type
           
 

Element Detail

name

public abstract java.lang.String name
(Required) the name of the sub-graph.

type

public abstract java.lang.Class type
Default:
void.class

attributes

public abstract NamedAttributeNode[] attributes
(Optional) if this component references a managed type then this list is the attributes of that type that must be included.

Default:
{}

EclipseLink 2.4.2, build 'v20130514-5956486' API Reference