Top Description Fields Constructors Methods
jakarta.persistence

public final Enum FetchType

extends Enum<FetchType>
Class Inheritance

Defines strategies for fetching data from the database.

Example:

@Basic(fetch = LAZY) protected String getName() { return name; }
@Basic(fetch = LAZY)
protected String getName() { return name; }
Since
1.0
See Also
Basic, ElementCollection, ManyToMany, OneToMany, ManyToOne, OneToOne

Field Summary

Modifier and TypeField and Description
public static final FetchType
EAGER

Data must be eagerly fetched.

public static final FetchType
LAZY

Data may be lazily fetched.

Constructor Summary

AccessConstructor and Description
private

Method Summary

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

Field Detail

EAGERback to summary
public static final FetchType EAGER

Data must be eagerly fetched.

LAZYback to summary
public static final FetchType LAZY

Data may be lazily fetched.

Constructor Detail

FetchTypeback to summary
private FetchType()

Method Detail

valueOfback to summary
public static FetchType valueOf(String name)
valuesback to summary
public static FetchType[] values()