Table of Contents

JPA - (Association) Fetch

About

The fetch attribute is a enum that specifies whether to load the field's persisted data:

The default behavior is:

In most cases, the default behavior is the most sensible approach.

Management

The PersistenceUtil.isLoaded methods can be used to determine the load state of an entity and its attributes regardless of the persistence unit with which the entity is associated.

Documentation / Reference