Spring Boot Full Course 2026

Complete Spring 7 & Spring Boot 4 course from beginner to Advance using first thought principle.

Curated by: Coder Army (41 videos)


Currently Playing: JPA Cascading, Lazy Loading & N+1 Problem | EntityGraph in Spring Boot | Spring Boot Full Course #31

Spring Boot Full Course #31 JPA relationships are not limited to annotations such as @OneToMany and @ManyToOne. We must also understand how related entities are persisted, when relationships are loaded, and how seemingly harmless Java code can execute dozens of hidden SQL queries. In this video, we will understand JPA cascading, lazy loading and the N+1 query problem from first principles using Spring Boot and Hibernate. Topics covered: What cascading means in JPA CascadeType.PERSIST and CascadeType.REMOVE CascadeType.ALL and other cascade operations Cascading vs relationship ownership Maintaining both sides of a bidirectional relationship FetchType.LAZY vs FetchType.EAGER Default fetch types for JPA relationships How Hibernate proxies enable lazy loading How the N+1 query problem occurs N+1 with to-one and collection relationships Effect of the first-level cache on query count Why EAGER fetching does not automatically solve N+1 Detecting hidden queries through Hibernate SQL logs Preventing N+1 using @EntityGraph Building use-case-specific fetch plans By the end of this video, you will understand how to design relationship loading deliberately instead of blindly choosing LAZY or EAGER. JAVA Beginner to Advance Series : https://youtube.com/playlist?list=PLQEaRBV9gAFsR15tNo2QLF9d2qc-c018p&si=lNuF5lyt4nKz9Up7 Join our WhatsApp Group: https://www.whatsapp.com/channel/0029VbBF1XKF1YlMyYuPM23s Code and Notes: Github : https://github.com/adityatandon15/Spring-Framework-Full-Course We have paid courses on DSA, Web Development , Blockchain, System Design & GenAI. Join Courses: https://strikes.in/ Coder Army Website: https://coderarmy.in/#home Coder Army App: https://play.google.com/store/apps/details?id=com.rohit.negi Connect with Aditya Tandon Instagram : https://www.instagram.com/adityatandon2 LinkedIn : https://www.linkedin.com/in/adityatandon2 Twitter : https://x.com/adityatandon02 Timestamps:


Tracks in this Playlist