Top Description Fields Constructors Methods
org.hibernate.annotations

public final Enum FetchMode

extends Enum<FetchMode>
Class Inheritance

Defines how the association should be fetched, compared to javax.persistence.FetchType which defines when it should be fetched
Author
Emmanuel Bernard

Field Summary

Modifier and TypeField and Description
private final FetchMode
public static final FetchMode
JOIN

Use an outer join to load the related entities, collections or joins.

public static final FetchMode
SELECT

Use a secondary select for each individual entity, collection, or join load.

public static final FetchMode
SUBSELECT

Available for collections only.

Constructor Summary

AccessConstructor and Description
private
FetchMode(FetchMode hibernateFetchMode)

Method Summary

Modifier and TypeMethod and Description
public FetchMode
public static FetchMode
public static FetchMode[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

hibernateFetchModeback to summary
private final FetchMode hibernateFetchMode
JOINback to summary
public static final FetchMode JOIN

Use an outer join to load the related entities, collections or joins.

SELECTback to summary
public static final FetchMode SELECT

Use a secondary select for each individual entity, collection, or join load.

SUBSELECTback to summary
public static final FetchMode SUBSELECT

Available for collections only. When accessing a non-initialized collection, this fetch mode will trigger loading all elements of all collections of the same role for all owners associated with the persistence context using a single secondary select.

Constructor Detail

FetchModeback to summary
private FetchMode(FetchMode hibernateFetchMode)

Method Detail

getHibernateFetchModeback to summary
public FetchMode getHibernateFetchMode()
valueOfback to summary
public static FetchMode valueOf(String name)
valuesback to summary
public static FetchMode[] values()