Top Description Methods
org.hibernate.annotations

public @Interface Fetch

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

Specifies the default fetching method for the annotated association.

When this annotation is not explicitly specified, then:

The default fetching method specified by this annotation may be overridden in a given fetch profile.

Note that join fetching is incompatible with lazy fetching, and so @Fetch(JOIN) implies fetch=EAGER.

Author
Emmanuel Bernard
See Also
FetchMode, FetchProfile

Method Summary

Modifier and TypeMethod and Description
public FetchMode
value()

The method that should be used to fetch the association.

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

valueback to summary
public FetchMode value()

The method that should be used to fetch the association.