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

#76 🔗 Entity Relationships | @OneToMany Annotation in Spring Boot

3IA Community

0:00 / 0:00

#76 🔗 Entity Relationships | @OneToMany Annotation in Spring Boot

39 просмотров · 7 дн. назад
3IA Community
380 подписчиков
39 просмотров · 7 дн. назад
#76 🔗 Entity Relationships | @OneToMany Annotation in Spring Boot 📝 Description In this video, we continue our Spring Boot training with the 3IA Community by exploring the @OneToMany annotation in Spring Data JPA. After studying @ManyToOne, we learn how to establish a bidirectional relationship between Category and Product entities to retrieve the products associated with a category. We also cover the FetchType.EAGER and FetchType.LAZY loading strategies, as well as resolving the LazyInitializationException error using the @Transactional annotation. 📚 What's On Introduction to the @OneToMany annotation One-way and two-way relationships Understanding the role of mappedBy FetchType.EAGER and FetchType.LAZY loading strategies Understanding the LazyInitializationException error Resolving it with the @Transactional annotation Hands-on demonstration with Spring Data JPA, Hibernate, and MySQL 💻 GitHub: Source code 🔗 https://github.com/3ia-community/Form... 🌐 Join the 3IA Community Meet our community to exchange ideas, ask questions, and stay up-to-date on our upcoming training courses and projects. 💼 LinkedIn:   / 3ia-community   💬 Discord Server:   / discord   🎥 YouTube Channel:    / @3iacommunity   📞 Contact 📧 Email: mohammedezzaim00@gmail.com 💼 LinkedIn:   / mohammed-ezzaim   🐱 GitHub: https://github.com/mohammedezzaim ❤️ Support 3IA Community 👍 Like the video if you found it helpful. 💬 Share your questions in the comments. 🔔 Subscribe to follow our upcoming Spring Boot training videos. 📤 Share this training with other Java development enthusiasts. 🔎Hashtags #SpringBoot #SpringDataJPA #Hibernate #OneToMany #ManyToOne #LazyInitializationException #Transactional #FetchType #Java #MySQL #JPA #SpringFramework #FormationSpringBoot #3IACommunity