Package org.hibernate.annotations
Annotation Type FetchProfile.FetchOverride
-
@Target({TYPE,PACKAGE}) @Retention(RUNTIME) public static @interface FetchProfile.FetchOverride
Overrides the fetching strategy for a particular association in the named fetch profile being defined. A "strategy" is a fetching method, together with the timing. Ifmode()
andfetch()
are both unspecified, the strategy defaults to eager join fetching.Additional fetch strategy overrides may be specified using the
@FetchProfileOverride
annotation.- See Also:
FetchProfileOverride
-
-
Required Element Summary
Required Elements Modifier and Type Required Element Description String
association
The association whose default fetch strategy is being overridden.Class<?>
entity
The entity containing the association whose default fetch strategy is being overridden.
-