Client and backend. This class is shared: the same code is compiled into your app and into your server, so everything on this page works in both.

public enum FetchType

  1. Object
  2. Enum<FetchType>
  3. FetchType

ImplementsComparable<FetchType>

Controls when a mapped relationship is loaded.

Enum constants

EAGERInitializes the relationship when its owner is loaded.
LAZYDefers loading until enhanced field access or explicit session initialization.

Methods

public static FetchType[] values()
public static FetchType valueOf(String name)

Inherited methods

Enum constant details

EAGER

EAGER
Initializes the relationship when its owner is loaded.

LAZY

LAZY
Defers loading until enhanced field access or explicit session initialization.

Method details

values

public static FetchType[] values()

valueOf

public static FetchType valueOf(String name)