My Oracle Support Banner

Sample EJB-JPA Lazy and Eager Fetch (Doc ID 1275162.1)

Last updated on JUNE 28, 2024

Applies to:

Oracle WebLogic Server - Version 10.3 to 10.3.4
Information in this document applies to any platform.
This document explains about the lazy loading.



Goal

Example that demonstrates lazyload.
The EAGER strategy is a requirement on the persistence provider runtime that data must be eagerly fetched. The LAZY strategy is a hint to the persistence provider runtime that data should be fetched lazily when it is first accessed.

Solution

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Goal
Solution
 Requirements
 Configuring
 Instructions
 Sample Code
 Sample Output


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.