Spring Data JPA extension allowing full dynamic usage of EntityGraph on repositories
-
Updated
Dec 2, 2025 - Java
Spring Data JPA extension allowing full dynamic usage of EntityGraph on repositories
Spring Data JPA, Spring Data JDBC, and Spring Data R2DBC examples and a comprehensive guide to JPA fetching and locking strategies.
Example Spring Boot REST app that shows different approaches for querying data from database with JPA.
Demonstrate Hibernate lazyloading
Entity Graph Example Using Hibernate
Spring Boot demo comparing JPA lazy loading (N+1 problem) vs EntityGraph optimization. Shows performance difference between 11 queries vs 1 query for Books-Authors many-to-many relationship. Includes query counting, tests, and metrics.
Ways to solve N+1 problem
Add a description, image, and links to the entity-graph topic page so that developers can more easily learn about it.
To associate your repository with the entity-graph topic, visit your repo's landing page and select "manage topics."