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

How One to One bidirectional mapping works in Spring Data JPA ? | spring boot | Hibernate

Selenium Express

0:00 / 0:00

How One to One bidirectional mapping works in Spring Data JPA ? | spring boot | Hibernate

8 004 просмотра · 2 г. назад
Selenium Express
129 тыс. подписчиков
8 004 просмотра · 2 г. назад
In this video we will learn to set up a One to One bidirectional mapping in spring boot data JPA. We will also learn about different spring data jpa related annotations like @OneToOne, @JoinColumn etc . Along with that we will have a deep dive on different property associated with the @OneToOne annotation like mappedBy property , cascade type and different available FetchTypes like Lazy and Eager. As in Spring Boot , Spring Data JPA is an important module to cover, this video will go in detail and explains a lot of internals regarding the way hibernate helps spring data JPA internally to work with the orm relationship mappings. Highlight of this video are 1.How spring Data JPA Lazy loading works? 2. How to set up a One to OneBidirectional mapping in spring data jpa / hibernate e? 3.How Cascading works ? 4.How a hibernate proxy object works in lazy loading ? 5. In which scenario lazy loading doesn’t work in one to one mapping. Timestamp ————— 00:00:00 - one to one mapping current setup 00:01:14 - Lazy loading in Spring data Jpa / Hibernate 00:06:22 - The Hibernate proxy object : FetchType.Lazy 00:10:32 - Debug Walkthrough - How Lazy loading works in spring bot data jpa 00:22:41 - Spring data spa cascade types - CascadeType.PERSIST 00:32:25 - One to One bidirectional mapping in spring data jpa / hibernate 00:38:36 - @OneToOne mappedBy property 00:50:50 - the unexpected behaviour of FetchType Lazy from non owning side 01:01:24 - why FetchType.Lazy issuing two select query from the inverse end 01:07:12 - QNA : Spring Data JPA 01:11:46 - does foreign Key allows null value ? #springboot #springdatajpa #jpa #hibernate #onetoone For more free/paid courses visit https://www.seleniumexpress.com LINKS AND FREE LEARNING RESOURCES ======== Watch my new mock interview series for java developers    • Java interview questions and answers for e...   Watch my new Hello spring boot series    • Spring Vs Spring Boot - Why Spring Boot ? ...   Watch Spring boot Hot topics    • @Reposicotry Vs @Service | Spring Boot | s...   Java Interview / Question and Answer series    • Java collections interview questions | Why...   Explain spring Bean Lifecycle    • REAL-TIME: Spring Bean life cycle using @P...   spring core    • Spring framework tutorial for beginners wi...   spring mvc    • Spring MVC course introduction || Understa...   spring mvc intermediate    • [INTERMEDIATE] Spring MVC Course Preview |...   Spring JDBC    • Spring JDBC Course Preview || Let’s talk d...   spring live project    • #1 Build and Deploy A Spring Project Step ...   SPRING SECURITY COURSE[NEW]    • Spring Security Course Preview | Learn to ...   For more courses visit https://www.seleniumexpress.com Any time you are getting stuck with issues, Feel free to ask for support. You can send mail to seleniumexpress@gmail.com you can ping me on my Facebook page   / seleniumexpress   Make sure to join my private Facebook page (Ask me here) “SeleniumExpress - Support"   / 187000222361579   you can ask for support in my website forum https://www.seleniumexpress.com Follow me on Insta   / selenium_express