Package org.hibernate.annotations
Annotation Interface FetchProfile.FetchOverride
- Enclosing class:
FetchProfile
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. If
mode()
and fetch()
are both unspecified,
the strategy defaults to eager
join fetching.
Additional fetch strategy overrides may be specified using the
@FetchProfileOverride
annotation.
- See Also:
-
Required Element Summary
Required ElementsModifier and TypeRequired ElementDescriptionThe association whose default fetch strategy is being overridden.Class
<?> The entity containing the association whose default fetch strategy is being overridden. -
Optional Element Summary
Optional Elements
-
Element Details
-
entity
Class<?> entityThe entity containing the association whose default fetch strategy is being overridden. -
association
String associationThe association whose default fetch strategy is being overridden. -
mode
FetchMode modeThe method used for fetching the association in the fetch profile being defined.- Default:
JOIN
-
fetch
FetchType fetchThetiming
of association fetching in the fetch profile being defined.- Default:
EAGER
-