Тёмный

Entity Mapping | @OneToOne, @OneToMany, @JoinColumn| Spring Data JPA | Spring Boot | Dev2Prod Coding 

Dev2Prod Coding
Подписаться 2,8 тыс.
Просмотров 196 тыс.
50% 1

This video will focus on Entity Mapping in Spring Data JPA basic concept. Example to demonstrate use of @OneToOne, @OneToMany, @JoinColumn using Spring Boot.
Github:
github.com/Dev...
In case you like this video please Like, Subscribe & press the bell icon.
Dev2Prod Coding

Опубликовано:

 

29 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 106   
@wantedlepota9960
@wantedlepota9960 Год назад
I like the fact that you have already created the classes(entity, controllers) before you record the video, which makes the video simple and short
@dev2prodcoding
@dev2prodcoding Год назад
Thanks
@ushasharma2631
@ushasharma2631 2 года назад
Just because of your perfect solution and exact explanation instead of keeping it long you made it short. I am subscribing your channel. Good Efforts thank you :)
@dev2prodcoding
@dev2prodcoding 2 года назад
Thanks and welcome
@indranilganguly4750
@indranilganguly4750 2 года назад
Great Video...Helped me a lot..Thanks
@sproutboot
@sproutboot Год назад
I might sound stupid but I found it interesting that f.k @OneToOne private Address address, Employee class has a attribute of address which data type is Address, and it actually stores int value which is addressID? and by setting cascade.all, when we send request payload for saving emps, it will affect Address class and save address info on Address table. And the fk column in emp table will show just int value(AddrID). I learned a lot. and I hope I understand correctly. Thanks!
@abhiramnair2195
@abhiramnair2195 2 года назад
nice video..cleared all my doubts.thank you
@Doum4n
@Doum4n 7 месяцев назад
Thank you very much
@dev2prodcoding
@dev2prodcoding 7 месяцев назад
You are welcome
@hrishikeshmukherjee8988
@hrishikeshmukherjee8988 2 года назад
wow
@INDIRAKUMARL-h5x
@INDIRAKUMARL-h5x 2 месяца назад
Thank you bro
@Leo-fi6bg
@Leo-fi6bg 2 года назад
Hi bro .. how to configure my slq or post man in application properties.. will u please solve that
@dev2prodcoding
@dev2prodcoding Год назад
ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-3wIRc94piU8.html please check this video where I have explained how to configure DB using application.properties file. Code Link - > github.com/Dev2ProdCoding/spring-data-jpa-springboot/blob/master/src/main/resources/application.properties
@kirindev
@kirindev Год назад
thank you
@weixiangng8279
@weixiangng8279 10 месяцев назад
How to implement it with Angular though?
@ankushkamble911
@ankushkamble911 Год назад
Great Explanation bro...but one error is occuring actually when we run many to one first time it will save the data but if we add another member of same addresse it will update the data...that means fk_emp_id 1 will replace by 2 so...what to do plz help me
@dev2prodcoding
@dev2prodcoding Год назад
Can you post your employee and address entity here for one to many mapping?
@kandruvinay6736
@kandruvinay6736 2 года назад
Push the file to git
@dev2prodcoding
@dev2prodcoding 2 года назад
url : github.com/Dev2ProdCoding/spring-data-jpa-mappings.git
@manideepkumar959
@manideepkumar959 Год назад
Bro, in address class , during 1-1 7:59 before and after using @OneToOne(mppedby="address") the output/table structure of address is same na, then can u tell me what is the use of that annotation
@adarsh6750
@adarsh6750 Месяц назад
How foreign key is created in address table? You mentioned address reference inside Employee entity right! then how foreign key is created inside address table?
@simon8284
@simon8284 7 месяцев назад
Sex bro Sex, even I couldn't understand this from Java Brains, Be Coder, and Code With Durgesh. You made a flawless victory...
@dev2prodcoding
@dev2prodcoding 7 месяцев назад
Thank You!!
@komeshwari319
@komeshwari319 7 дней назад
your video really very helpfull for me thankyou
@KlanBr1
@KlanBr1 Год назад
if i duplicate my request in postman, so duplicate my entities, that not shoul be happen, because then i have duplicate employees and addresses, how do yo stop this behavior, you put some logical in your service?(sorry for my english)
@eosorto55
@eosorto55 2 месяца назад
brother podrias hacer uno con orden bbidireccional
@pranshugautam8890
@pranshugautam8890 Год назад
I want to ask one q : when you used unidirectional you have not written one to one in address class and when you showed bidirectional then you write one-to-one in address class but there was no difference in output that you showed so why we have to write one-to-one in address class when there is no difference in output?
@donDan94
@donDan94 Год назад
yeah right, I just watched the video and had the same question. Can I ask you, did you find any information about this, is there any difference? cheers!
@ChVenki
@ChVenki 2 месяца назад
I too have the same question
@vinaymathapati4077
@vinaymathapati4077 Год назад
Where is properties file
@dev2prodcoding
@dev2prodcoding Год назад
github.com/Dev2ProdCoding/spring-data-jpa-mappings/tree/master/src/main/resources
@dod-do-or-dont
@dod-do-or-dont 5 месяцев назад
Why 90% od tutorials are low quality indian ones?
@siddhantrakesh1245
@siddhantrakesh1245 5 месяцев назад
Bro i have one doubt
@venkateshejjigiri-4137
@venkateshejjigiri-4137 Год назад
fk_add_id is not reflecting in employee table. and no data in adreess table. pls help me
@jaymichalek1693
@jaymichalek1693 Год назад
Awesome explanation. I hope you can make more videos.
@kotidinta1585
@kotidinta1585 2 года назад
Bro nice explaination. Could please make video on total spring project
@dev2prodcoding
@dev2prodcoding 2 года назад
Sure
@ujjwalsingh3160
@ujjwalsingh3160 23 дня назад
Nice Explanation !! You Got 1 Subscriber!!
@ash416
@ash416 2 года назад
Hello bro please reply I have to separate entities flight and airport and I don't want to save the data for airport while saving flight,since airport table is already populated Hope it make sense
@Rasmusorum
@Rasmusorum Год назад
How does it make sense to make a @onetoone relationship? Why not just embed the class?
@janstefangehrmann1139
@janstefangehrmann1139 6 месяцев назад
Thank you so much. Now I understand how to handle relations :)
@muskanyadav2391
@muskanyadav2391 2 месяца назад
Never really understood the concept of mappings until I watched this video. You made it so simple and easy..keep uploading. Thanks!!
@dev2prodcoding
@dev2prodcoding 27 дней назад
Glad to hear that
@karthickdk9313
@karthickdk9313 2 года назад
thank u so much.. upload more videos .. based on entity
@roshanpawar571
@roshanpawar571 2 года назад
Nice video..... but how to update mapping data
@dev2prodcoding
@dev2prodcoding 2 года назад
Thanks @roshan....I am assuming by update mapping data you mean updating records in db. For updating you can use same method you used to save it i.e saveAll() or save(). Let me know in case of any other query.
@zuberdiwan8123
@zuberdiwan8123 Год назад
Very Good Explained..Thank You.....
@dev2prodcoding
@dev2prodcoding Год назад
Glad it was helpful!
@kosalaTravellingVlogs27
@kosalaTravellingVlogs27 Год назад
Perfect Explanation. Thanks
@dev2prodcoding
@dev2prodcoding Год назад
Glad it was helpful!
@forinda
@forinda Год назад
Perfect explanation😊
@dev2prodcoding
@dev2prodcoding Год назад
Thank you! 😃
@shaharukhshaikh4676
@shaharukhshaikh4676 Год назад
No one beat this content on RU-vid thnks bro🎉
@dev2prodcoding
@dev2prodcoding Год назад
Glad you enjoy it!
@harishchandra8057
@harishchandra8057 2 года назад
plz upload the next part ...onetomany bidirectional and manytomany
@HuieChannel
@HuieChannel 6 месяцев назад
bro these indians are hella clutch
@dev2prodcoding
@dev2prodcoding 27 дней назад
No doubt
@HuieChannel
@HuieChannel 27 дней назад
@@dev2prodcoding hahaha because of you I finished my CS course XD
@harishchandra8057
@harishchandra8057 2 года назад
Nice explanation sir..
@suthar_ravi
@suthar_ravi Год назад
Great explanation 👌🏻😇
@dev2prodcoding
@dev2prodcoding Год назад
Glad you liked it!
@neerajayarasani8456
@neerajayarasani8456 Год назад
short and clear. Thank you
@dev2prodcoding
@dev2prodcoding Год назад
Glad it was helpful!
@HongruiLiu-t7d
@HongruiLiu-t7d 10 месяцев назад
Thank u!
@dev2prodcoding
@dev2prodcoding 8 месяцев назад
Thanks..
@Emanuel-yb3qk
@Emanuel-yb3qk 6 месяцев назад
Thanks for explaning it too easy bro. Greetings from Mexico.
@dev2prodcoding
@dev2prodcoding 6 месяцев назад
Glad it helped..Happy Learning!
@siddhantrakesh1245
@siddhantrakesh1245 5 месяцев назад
​@@dev2prodcoding bro i have one doubt
@virendrasingh-en1yy
@virendrasingh-en1yy 2 года назад
nice explanation clear my all doubts with in short time thankyou so much
@gauravsrivastava17
@gauravsrivastava17 4 месяца назад
Short and to the point 🔥🔥🔥🔥
@nguyenquangtinh4911
@nguyenquangtinh4911 Год назад
thank you
@dev2prodcoding
@dev2prodcoding Год назад
Welcome!
@SKMishra2023
@SKMishra2023 2 года назад
8:12
@jitendrapatil3276
@jitendrapatil3276 2 года назад
Great Video. Just subscribed....
@surajdevrajak9267
@surajdevrajak9267 Год назад
Good work man
@dev2prodcoding
@dev2prodcoding Год назад
Thank you!
@swadeshswaroopbehera8465
@swadeshswaroopbehera8465 2 года назад
great explanation. keep up the good work.
@dev2prodcoding
@dev2prodcoding 2 года назад
Thanks!
@venu5791
@venu5791 2 года назад
can you add @jsonbackReference, @jsonmanagedreference along with the mappings
@HimanshuVerma-ko7vr
@HimanshuVerma-ko7vr Год назад
very helpful
@dev2prodcoding
@dev2prodcoding Год назад
Glad to hear that
@jakub.686
@jakub.686 2 года назад
Thank You for this video, it helped me a lot
@samnayakawadi
@samnayakawadi 2 года назад
Subscribed. Thanks.
@connect2soumen
@connect2soumen 2 года назад
Neat and clean video.
@dev2prodcoding
@dev2prodcoding 2 года назад
Glad you liked it!
@tonycavanagh1929
@tonycavanagh1929 Год назад
Brilliant, well presented and consice.
@dev2prodcoding
@dev2prodcoding Год назад
Thank you👍
@thirumalyadav7509
@thirumalyadav7509 2 года назад
Best explanation bro
@wellingtonfjr
@wellingtonfjr Год назад
nice video!! +1 sub, thanks
@dev2prodcoding
@dev2prodcoding Год назад
Thanks for the sub!
@HusnainAshfaq-kr5or
@HusnainAshfaq-kr5or 5 месяцев назад
good
@sachithnanayakkara4027
@sachithnanayakkara4027 2 года назад
How about One to Many & Many to One Mapping and also many to many mapping? Can you make a video for that
@dev2prodcoding
@dev2prodcoding 2 года назад
ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-v40e5SOMftQ.html
@tobyhamilton2153
@tobyhamilton2153 Год назад
You didn't even show how to right at the get mapping, so you just showed how to do the annotations, how is someone meant to known how to make the get request!!!
@atharvsingh6901
@atharvsingh6901 Год назад
Much appreciated dude🙂🙏
@dev2prodcoding
@dev2prodcoding Год назад
Thanks...Happy to help
@m_sharif
@m_sharif Год назад
Just to the point.. Thank you.
@dev2prodcoding
@dev2prodcoding Год назад
I am Glad you like it. Thanks!
@sonubandigi3788
@sonubandigi3788 Год назад
bro dhanyawad
@dev2prodcoding
@dev2prodcoding Год назад
Thank You!!
@ZiSang-z4q
@ZiSang-z4q Год назад
So good explained! Just one question, first OneToOne Example, in Entity Employee_Detail you add Address address, which created automatically a FK fk_add_id, should a index be created to that fk_add_id, if data volumn is very big? Thank you!
@ayushkumarjajodia8828
@ayushkumarjajodia8828 2 года назад
what will be the difference in table structure b/w uni and bi direction of one to one mapping?
@dev2prodcoding
@dev2prodcoding 2 года назад
There will be no difference.
@siyansunny3090
@siyansunny3090 2 года назад
Good explanation.. waiting for next video...
Далее
FATAL CHASE 😳 😳
00:19
Просмотров 1,3 млн
#12 Hibernate Tutorial | Mapping Relations Theory
13:14
What is JPA? | JPA Implementation
26:21
Просмотров 385 тыс.