Тёмный

Part 1 - Relationships in Hibernate Using SpringBoot OneToMany and ManyToOne 

Kindson The Tech Pro
Подписаться 56 тыс.
Просмотров 76 тыс.
50% 1

Relationships in Hibernate Using SpringBoot OneToMany and ManyToOne
Tutorial Page: www.kindsonthegenius.com/2019...
Subscribe Kindson The Tech Pro RU-vid: bit.ly/2PpJd8Q
Join my group ICS on Facebook: bit.ly/2UULiQj
Follow me on Instagram - / kindsonm
Connect with me on LinkedIn: / kindson
Follow me on Twitter: / kindsonm
Learn about me: www.kindsonthegenius.com

Наука

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

 

9 июл 2019

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 74   
@Xy-gx8ou
@Xy-gx8ou 3 года назад
After spending hours trying to figure it out by myself I was about to give up on this topic, but your video saved me! Thank you so much!
@QwertyQwerty-so4kw
@QwertyQwerty-so4kw 7 месяцев назад
can't express in words how much I want to thank you. I finally understood how mapping is done. this things has been haunting me for a few years since I learned sql. thank you very much
@diegoruiz5265
@diegoruiz5265 3 года назад
Awesome video my friend ! I saw this topic in many others videos (some of the them with cost) and you've been the only that explains it in a practical and simple way. My English is not good but I underestood you clearly. Thanks a lot, you have a new suscriptor !
@renitalobo927
@renitalobo927 4 года назад
Awesome video. Searched a lot to understand this concept. Finally I got it. Thank you.
@ashuzguitar
@ashuzguitar 2 года назад
Thanks a lot. Finally, so many things got cleared. With one to many, always an additional table gets created. In sql, we can simply add fk, this is achieved in hibernate from many-to-one side. Using mapped-by, we can tell one-to-many side entity to not worry, and only let many-to-one side entity handle the relationship. This video is gold, you may really be a tech pro afterall, like your user-name suggests. Cheers.
@rksCraze
@rksCraze 6 месяцев назад
Your statements are also very useful I found..now its 110% clear concept !!
@ashuzguitar
@ashuzguitar 6 месяцев назад
@@rksCraze Thanks
@uddeshyaseth9732
@uddeshyaseth9732 3 года назад
Best Best Best Tutorial and way to explain is amazing, bro I am literally speechless. Bro, I owe you this one.
@gabrielmatos1233
@gabrielmatos1233 Год назад
You couldn't be clearer than this! Thanks a lot!
@piotrhirnyk5577
@piotrhirnyk5577 9 месяцев назад
The way your presented this is awesome! Thanks a lot!
@mohamedboukourdane8860
@mohamedboukourdane8860 3 года назад
as always, great tutorial, thank you man
@ramonrodrigueslima5684
@ramonrodrigueslima5684 2 года назад
Thanks, this lesson was right in time!!
@KieranMueller
@KieranMueller Год назад
Awesome video, clear and concise
@siyavashvaezafshar4265
@siyavashvaezafshar4265 3 года назад
You are hell of a teacher my friend
@rksCraze
@rksCraze 6 месяцев назад
Vey clear and useful video. Thanks you !!
@beytullahyayla7401
@beytullahyayla7401 Год назад
Thanks for video. I'm studying on a project. But when i try to do onetomany mapping, the foreignKeys are not created at Database. In your example this foreign key is DepartmentId. Have you any advice ?
@dharmalingeswarparasa1609
@dharmalingeswarparasa1609 Год назад
Thank you very much, Great explanation, this content deserves more views
@KindsonTheTechPro
@KindsonTheTechPro Год назад
Glad it was helpful!
@angelmora6877
@angelmora6877 Месяц назад
You're the goat bro thnk u so much
@damilolaodude9733
@damilolaodude9733 2 месяца назад
Thank you 🙌🏽
@studyingit9762
@studyingit9762 Год назад
Great Video!!!!
@chrismajuba
@chrismajuba 7 месяцев назад
Perfect explanation 👌
@samiyahyabey4104
@samiyahyabey4104 3 года назад
I did the exact same thing and I have : @Column(s) not allowed on a @ManyToOne property
@fazlulkareem254
@fazlulkareem254 4 года назад
great tutorial man!!!............keep doing
@ashraym2533
@ashraym2533 3 года назад
Thank you so much....🤩🤩helped me a lot
@markoacimovic9889
@markoacimovic9889 3 года назад
Excellent video .
@user-lc7qs7gy5d
@user-lc7qs7gy5d Месяц назад
This is best video , many videos are like , hey this is how the relationship happened No one teaches from scratch this function will do this things will do this, becuase we need our requirement is different so need to know how can we build the best Model to work smooth , and here i got YOu man , thanks ,
@samjuthecoder2310
@samjuthecoder2310 3 года назад
So great!!!
@ab-real-life
@ab-real-life 3 года назад
You just solved a big problem for me thnaks
@fookoboy9623
@fookoboy9623 Год назад
how to enter data inside of that table in json formet
@sondray9369
@sondray9369 3 года назад
Thank you so much boss.
@darshandarshu4171
@darshandarshu4171 5 месяцев назад
thanks a lot
@oracle8798
@oracle8798 3 года назад
brilliant tutorial
@user-lc7qs7gy5d
@user-lc7qs7gy5d Месяц назад
in case of table name is different yes in class it is student but we gave the table="students_details" then how
@gowripravallika8895
@gowripravallika8895 4 года назад
i need code how can i access.
@ismailshaik416
@ismailshaik416 Год назад
Easy to understand thank you
@KindsonTheTechPro
@KindsonTheTechPro Год назад
Glad it helped!
@sachithnanayakkara4027
@sachithnanayakkara4027 2 года назад
Good One 👍
@mandeepsharma8305
@mandeepsharma8305 3 года назад
Thank you sir.
@sumanpatil327
@sumanpatil327 3 года назад
It will be helpful if you show hot to insert data using postman
@user-lc7qs7gy5d
@user-lc7qs7gy5d Месяц назад
Teach about casecad also ! ?
@tamometreveli7018
@tamometreveli7018 3 года назад
thanks
@Das.Kleine.Krokodil
@Das.Kleine.Krokodil Год назад
Do I understand correctly that if there are two entities with a One-to-Many relationship, such as Employee and EmployeePhones. Then you need to receive such data on the server in DTO with one call, but with two separate json? And write down one by one: first the employee, get the ID from the saved employee, and then we record the phones using this ID for communication.
@KindsonTheTechPro
@KindsonTheTechPro Год назад
Yes, if you must have two separate json files. But why do you need two separate json?
@Rk_---_M-i3p
@Rk_---_M-i3p 4 года назад
Awesome man...keep it up
@KindsonTheTechPro
@KindsonTheTechPro 4 года назад
Thanks a ton! Also remember to subscribe too!
@stefanmanev2061
@stefanmanev2061 3 года назад
Thanks dude
@lovachittumuri
@lovachittumuri 3 года назад
Nice explained
@gameplays997
@gameplays997 3 года назад
thank you !
@KindsonTheTechPro
@KindsonTheTechPro 3 года назад
You're welcome!
@anushakuthuru150
@anushakuthuru150 3 года назад
Can u provide GitHub link?
@stefancondriea8195
@stefancondriea8195 2 года назад
The best explanation i get
@KindsonTheTechPro
@KindsonTheTechPro 2 года назад
Thanks a lot!😊
@nicolahorst8529
@nicolahorst8529 3 года назад
Thanks for the explanation, that was really helpful. I still have a question. If you post a department with a Student with POST. Does the Student Objekte is automatically added to the students table and is accessible with student/:Id?
@SergiuIoan99
@SergiuIoan99 3 года назад
Hi! Did you get the answer? I have the same question
@nicolahorst8529
@nicolahorst8529 3 года назад
@@SergiuIoan99 Hi Ya if got an answer for that. If you Post a department you dont create a new Student you just pass the reference of the existing student that you want to add to the department. So Step one you create a Student step two you create a Department and pass the reference in the JSON object of Department. Reference is the Link students/student/id. And Spring will do the rest. I hope I could answer your question. If not tell me i will try to explain it again :)
@SergiuIoan99
@SergiuIoan99 3 года назад
@@nicolahorst8529 Thank you very much! 🙏
@feezankhattak1573
@feezankhattak1573 2 года назад
@@nicolahorst8529 Please fruitfull your anwer with some code. :)
@nicolahorst8529
@nicolahorst8529 2 года назад
@@feezankhattak1573 hi can you specify what exactly you need (as code) ? If you could specify I can provide you some code of course. :)
@sreerammaramwira5513
@sreerammaramwira5513 2 года назад
His name is "Kindson The Tech Pro"
@KindsonTheTechPro
@KindsonTheTechPro 2 года назад
😃 😃 😃
@hadiansari5574
@hadiansari5574 Год назад
😍😍😍
@monabeldi292
@monabeldi292 2 года назад
genius
@feezankhattak1573
@feezankhattak1573 2 года назад
That's nice explanation, but i want something like; department{ id: ... name: ...... students: { id: ..... name: .... } } That is , in your case the student have department_id, but what i want to put the student_id into the department table. like i try to show in the above json format. Thanks in advance :)
@KindsonTheTechPro
@KindsonTheTechPro 2 года назад
I get your point but we need to be careful with this so we avoid infinite recursion. How to do this is explained here ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-min556C749k.html
@Himanshubishnoi-td3nh
@Himanshubishnoi-td3nh 4 месяца назад
then why dont we just make only manytoone in students??
@pmpm4537
@pmpm4537 2 дня назад
This! I have the same question
@vijaymane7541
@vijaymane7541 Год назад
CoolDB🤣😂
@Oliver-pj5bu
@Oliver-pj5bu Год назад
studeint
@Photoshopper2010
@Photoshopper2010 5 месяцев назад
I do the same but @OneToMany cases infinite recursion
Далее
#12 Hibernate Tutorial | Mapping Relations Theory
13:14
Beautiful sport😍
00:20
Просмотров 325 тыс.
6 SQL Joins you MUST know! (Animated + Practice)
9:47
Просмотров 124 тыс.