Top Description Methods
javax.persistence

public @Interface NamedSubgraph

extends Annotation
Annotations
@Target
@Retention:RUNTIME
Imports
java.lang.annotation.Target, .Retention

A NamedSubgraph is a member element of a NamedEntityGraph. The NamedSubgraph is only referenced from within a NamedEntityGraph and can not be referenced independently. It is referenced by its name from a NamedAttributeNode element of the NamedEntityGraph.
Since
Java Persistence 2.1
See Also
NamedEntityGraph, NamedAttributeNode

Method Summary

Modifier and TypeMethod and Description
public NamedAttributeNode[]
attributeNodes()

(Required) The list of the attributes of the class that must be included.

public String
name()

(Required) The name of the subgraph as referenced from a NamedAttributeNode element.

public Class<T>
type()

(Optional) The type represented by this subgraph.

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

attributeNodesback to summary
public NamedAttributeNode[] attributeNodes()

(Required) The list of the attributes of the class that must be included. If the named subgraph corresponds to a subclass of the class referenced by the corresponding attribute node, then only subclass-specific attributes are listed.

nameback to summary
public String name()

(Required) The name of the subgraph as referenced from a NamedAttributeNode element.

typeback to summary
public Class<T> type()

(Optional) The type represented by this subgraph. The element must be specified when this subgraph is extending a definition on behalf of a subclass.