Package org.hibernate
Class FetchMode
java.lang.Object
org.hibernate.FetchMode
- All Implemented Interfaces:
Serializable
Represents an association fetching strategy. This is used
together with the Criteria API to specify runtime
fetching strategies.
For HQL queries, use the FETCH keyword instead.
For HQL queries, use the FETCH keyword instead.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final FetchModeDefault to the setting configured in the mapping file.static final FetchModeDeprecated.use FetchMode.JOINstatic final FetchModeFetch using an outer join.static final FetchModeDeprecated.use FetchMode.SELECTstatic final FetchModeFetch eagerly, using a separate select. -
Method Summary
-
Field Details
-
DEFAULT
Default to the setting configured in the mapping file. -
JOIN
Fetch using an outer join. Equivalent to fetch="join". -
SELECT
Fetch eagerly, using a separate select. Equivalent to fetch="select". -
LAZY
Deprecated.use FetchMode.SELECTFetch lazily. Equivalent to outer-join="false". -
EAGER
Deprecated.use FetchMode.JOINFetch eagerly, using an outer join. Equivalent to outer-join="true".
-
-
Method Details