Package org.hibernate.annotations
Annotation Type Fetch
-
@Target({METHOD,FIELD}) @Retention(RUNTIME) public @interface Fetch
Specifies the default fetching strategy 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.
- See Also:
FetchMode
,FetchProfile
-
-
Element Detail
-
value
FetchMode value
The method that should be used to fetch the association.
-
-