public final class

FetchMode

extends Object
implements Serializable
java.lang.Object
   ↳ org.hibernate.FetchMode

Class Overview

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.

Summary

Fields
public static final FetchMode DEFAULT Default to the setting configured in the mapping file.
public static final FetchMode EAGER This field is deprecated. use FetchMode.JOIN
public static final FetchMode JOIN Fetch using an outer join.
public static final FetchMode LAZY This field is deprecated. use FetchMode.SELECT
public static final FetchMode SELECT Fetch eagerly, using a separate select.
Public Methods
String toString()
[Expand]
Inherited Methods
From class java.lang.Object

Fields

public static final FetchMode DEFAULT

Default to the setting configured in the mapping file.

public static final FetchMode EAGER

This field is deprecated.
use FetchMode.JOIN

Fetch eagerly, using an outer join. Equivalent to outer-join="true".

public static final FetchMode JOIN

Fetch using an outer join. Equivalent to fetch="join".

public static final FetchMode LAZY

This field is deprecated.
use FetchMode.SELECT

Fetch lazily. Equivalent to outer-join="false".

public static final FetchMode SELECT

Fetch eagerly, using a separate select. Equivalent to fetch="select".

Public Methods

public String toString ()