Перейти к содержимому

Many-to-Many Relationships in JPA (@ManyToMany) Explained | Day 62

Be Software Engineer

0:00 / 0:00

Many-to-Many Relationships in JPA (@ManyToMany) Explained | Day 62

3 просмотра · 1 день назад
Be Software Engineer
36 подписчиков
3 просмотра · 1 день назад
Day 62 of the Java Backend Development + Spring Boot course. Some relationships can't be expressed with a single foreign key. Today covers the one that needs a third table. In this video, you'll learn: Why many-to-many needs a join table in a relational database @ManyToMany and @JoinTable, with a students and clubs example The owning side vs. the mappedBy side Why Set is preferred over List for these collections When plain many-to-many isn't enough and you need an explicit join entity This is Lesson 62 of Phase 5: JPA + Hibernate + PostgreSQL. All four relationship types are now covered. 📌 Previous — Day 61: Many-to-One Relationships 📌 Next up — Day 63: Lazy vs Eager Loading 📚 Recommended Resources 📖 Spring in Action (5th Edition) — Craig Walls 👉 https://www.amazon.in/Spring-Action-F... As an Amazon Associate, I earn from qualifying purchases. 🛒 Recommended Coding Setup 💻 Laptop for Coding 👉 https://www.amazon.in/ASUS-Vivobook-i... ⌨️ Mechanical Keyboard 👉 https://www.amazon.in/dp/B07989JYRS?t... 🖱️ Wireless Mouse 👉 https://www.amazon.in/Logitech-Silent... 🎧 Headphones / Headset 👉 https://www.amazon.in/boAt-Rockerz-42... As an Amazon Associate I earn from qualifying purchases. #JavaBackend #SpringBoot #JPA #Hibernate #LearnJava