Package org.hibernate.annotations
Annotation Interface FetchProfileOverride
@Target({METHOD,FIELD})
@Retention(RUNTIME)
@Repeatable(FetchProfileOverrides.class)
public @interface FetchProfileOverride
Overrides the fetching strategy for the annotated association
in a certain named fetch profile. A
"strategy" is a fetching method, together
with the timing. If
mode()
and
fetch()
are both unspecified, the strategy defaults to
eager join
fetching.
The specified profile name must match the
name of an existing fetch profile declared using the
@FetchProfile
annotation.
- Since:
- 6.3
- See Also:
-
Required Element Summary
Required ElementsModifier and TypeRequired ElementDescriptionThe name of thefetch profile
in which this fetch mode should be applied. -
Optional Element Summary
Optional Elements
-
Element Details
-
profile
String profileThe name of thefetch profile
in which this fetch mode should be applied.
-
-