Top Fields
org.hibernate.cfg

public Interface FetchSettings

Known Direct Subinterfaces
org.hibernate.cfg.AvailableSettings
Imports
org.hibernate.annotations.BatchSize

Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
public static final String
BATCH_FETCH_STYLE

Specifies the org.hibernate.loader.BatchFetchStyle to use, either the name of a {code BatchFetchStyle} instance, or an instance of BatchFetchStyle.

public static final String
DEFAULT_BATCH_FETCH_SIZE

Specifies the default value for batch fetching.

public static final String
MAX_FETCH_DEPTH

Specifies the maximum depth of nested outer join fetching.

public static final String
USE_SUBSELECT_FETCH

When enabled, Hibernate will use subselect fetching, when possible, to fetch any collection.

Field Detail

BATCH_FETCH_STYLEback to summary
public static final String BATCH_FETCH_STYLE

Deprecated

since 6.0.

An appropriate batch-fetch style is selected automatically

Specifies the org.hibernate.loader.BatchFetchStyle to use, either the name of a {code BatchFetchStyle} instance, or an instance of BatchFetchStyle.

Annotations
@Deprecated
since:6.0
@SuppressWarnings:DeprecatedIsStillUsed
DEFAULT_BATCH_FETCH_SIZEback to summary
public static final String DEFAULT_BATCH_FETCH_SIZE

Specifies the default value for batch fetching.

By default, Hibernate only uses batch fetching for entities and collections explicitly annotated @BatchSize.

See Also
org.hibernate.annotations.BatchSize, org.hibernate.Session#setFetchBatchSize(int), org.hibernate.boot.SessionFactoryBuilder#applyDefaultBatchFetchSize(int)
MAX_FETCH_DEPTHback to summary
public static final String MAX_FETCH_DEPTH

Specifies the maximum depth of nested outer join fetching.

See Also
org.hibernate.boot.SessionFactoryBuilder#applyMaximumFetchDepth
USE_SUBSELECT_FETCHback to summary
public static final String USE_SUBSELECT_FETCH

When enabled, Hibernate will use subselect fetching, when possible, to fetch any collection. Subselect fetching involves fetching the collection based on the restriction used to load it owner(s).

By default, Hibernate only uses subselect fetching for collections explicitly annotated @Fetch(SUBSELECT).

Since
6.3
See Also
org.hibernate.annotations.FetchMode#SUBSELECT, org.hibernate.Session#setSubselectFetchingEnabled(boolean), org.hibernate.boot.SessionFactoryBuilder#applySubselectFetchEnabled(boolean)