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

preview_player
Показать описание
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

LINKS AND FREE LEARNING RESOURCES
========
Watch my new mock interview series for java developers

Watch my new Hello spring boot series

Watch Spring boot Hot topics

Java Interview / Question and Answer series

Explain spring Bean Lifecycle

spring core

spring mvc

spring mvc intermediate

Spring JDBC

spring live project

SPRING SECURITY COURSE[NEW]

For more courses visit

Any time you are getting stuck with issues, Feel free to ask for support.

you can ping me on my Facebook page

Make sure to join my private Facebook page (Ask me here)
“SeleniumExpress - Support"

you can ask for support in my website forum

Follow me on Insta
Рекомендации по теме
Комментарии
Автор

Great Session, Can you please upload remaining sessions.

Hari
Автор

Experienced but always follow your channel to keep the knowledge refreshed. Enjoying learning.

mohammedsardar
Автор

Please make a video on multi threading and how we can achieve it. I am very big follower of your videos. You are explaining in detail every topic.

lahasyakatte
Автор

Very nice!
I love each episode of your series ❤❤❤

sureshjee
Автор

Sir, your video is very very helpful for me... Every video is very in depth... Thanks a lot❤
Sir, i have a request please make a video about Spring Dada JPA Auditing related
Thank you❤❤

debanandamahata
Автор

Sir we need microservices design pattern, and projects in spring boot and microservices, docker, please

tammamdarwish
Автор

Hi Abhilash, when to expect a tutorial on a parallel stream? 🙏🙏

ashutoshgupta
Автор

Abhilash sir, I'm a big fan of yours. May I have a trial session with you, please?

ADNANKhan-gyln
Автор

can you demo Hibernate N+1 problem when you get a chance

subba