org.hibernate
Class FetchMode
- Serializable
public final class FetchMode
extends java.lang.Object
implements 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.
Criteria.setFetchMode(java.lang.String, FetchMode)
DEFAULT
public static final FetchMode DEFAULT
Default to the setting configured in the mapping file.
EAGER
public static final FetchMode EAGER
use FetchMode.JOIN
Fetch eagerly, using an outer join. Equivalent to
outer-join="true".
JOIN
public static final FetchMode JOIN
Fetch using an outer join. Equivalent to fetch="join".
LAZY
public static final FetchMode LAZY
use FetchMode.SELECT
Fetch lazily. Equivalent to outer-join="false".
SELECT
public static final FetchMode SELECT
Fetch eagerly, using a separate select. Equivalent to
fetch="select".
toString
public String toString()