Package org.hibernate.annotations
Annotation Interface Fetch
Specifies the default fetching method for the annotated association.
When this annotation is not explicitly specified, then:
- select fetching is used for lazy fetching, and
- join fetching is used for eager fetching.
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
.
- See Also:
-
Required Element Summary
Required Elements
-
Element Details
-
value
FetchMode valueThe method that should be used to fetch the association.
-