JPA Lazy vs Eager Loading

Component Inspector

Click on components to learn about fetch strategies, or run a simulation to see how data is loaded.

Simulation Legend

EAGER Fetch (Loads immediately)
LAZY Fetch (Loads on demand)
Proxy Object (Placeholder)

Memory State (L1 Cache)

Memory is empty. Run a simulation.
Request
Application Layer
UserService
User u = repo.findById(1);
u.getProfile(); // Triggers load
Hibernate ORM
Manages Entity State & Proxies
Network Boundary
PostgreSQL
Users
Profiles