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 Жыл бұрын
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
@KindsonTheTechPro4 ай бұрын
You're so welcome😊
@ashuzguitar3 жыл бұрын
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.
@rks_grd Жыл бұрын
Your statements are also very useful I found..now its 110% clear concept !!
@ashuzguitar Жыл бұрын
@@rks_grd Thanks
@diegoruiz52653 жыл бұрын
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 !
@renitalobo9275 жыл бұрын
Awesome video. Searched a lot to understand this concept. Finally I got it. Thank you.
@uddeshyaseth97323 жыл бұрын
Best Best Best Tutorial and way to explain is amazing, bro I am literally speechless. Bro, I owe you this one.
@gabrielmatos12332 жыл бұрын
You couldn't be clearer than this! Thanks a lot!
@dharmalingeswarparasa16092 жыл бұрын
Thank you very much, Great explanation, this content deserves more views
@KindsonTheTechPro2 жыл бұрын
Glad it was helpful!
@franciscoalves7098Ай бұрын
the goat, thank you, u saved me and my final project
@piotrhirnyk5577 Жыл бұрын
The way your presented this is awesome! Thanks a lot!
@KindsonTheTechPro4 ай бұрын
My pleasure 😊
@CodeWithRains7 ай бұрын
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 ,
@KindsonTheTechPro5 ай бұрын
Many thanks 😊
@siyavashvaezafshar42654 жыл бұрын
You are hell of a teacher my friend
@KieranMueller Жыл бұрын
Awesome video, clear and concise
@angelmora68777 ай бұрын
You're the goat bro thnk u so much
@KindsonTheTechPro6 ай бұрын
Nice to hear from a soccer fan!!
@ramonrodrigueslima56842 жыл бұрын
Thanks, this lesson was right in time!!
@rks_grd Жыл бұрын
Vey clear and useful video. Thanks you !!
@KindsonTheTechPro5 ай бұрын
Glad it was helpful!
@mohamedboukourdane88604 жыл бұрын
as always, great tutorial, thank you man
@chrismajuba Жыл бұрын
Perfect explanation 👌
@KindsonTheTechPro4 ай бұрын
😊
@ismailshaik4162 жыл бұрын
Easy to understand thank you
@KindsonTheTechPro2 жыл бұрын
Glad it helped!
@stefancondriea81953 жыл бұрын
The best explanation i get
@KindsonTheTechPro3 жыл бұрын
Thanks a lot!😊
@CodeWithRains7 ай бұрын
Teach about casecad also ! ?
@Cavdar20125 ай бұрын
thanks a lot. how can i get to the next parts?
@KindsonTheTechPro5 ай бұрын
This is the next part, Part 2 kzbin.info/www/bejne/g3mcpaBojL6GbJosi=VIlHWNZZz0zAbPWk
@damilolaodude97339 ай бұрын
Thank you 🙌🏽
@KindsonTheTechPro5 ай бұрын
😊
@CodeWithRains7 ай бұрын
in case of table name is different yes in class it is student but we gave the table="students_details" then how
@beytullahyayla74012 жыл бұрын
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 ?
@studyingit9762 Жыл бұрын
Great Video!!!!
@nicolahorst85293 жыл бұрын
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?
@SergiuIoan993 жыл бұрын
Hi! Did you get the answer? I have the same question
@nicolahorst85293 жыл бұрын
@@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 :)
@SergiuIoan993 жыл бұрын
@@nicolahorst8529 Thank you very much! 🙏
@feezankhattak15733 жыл бұрын
@@nicolahorst8529 Please fruitfull your anwer with some code. :)
@nicolahorst85293 жыл бұрын
@@feezankhattak1573 hi can you specify what exactly you need (as code) ? If you could specify I can provide you some code of course. :)
@markoacimovic98893 жыл бұрын
Excellent video .
@sumanpatil3274 жыл бұрын
It will be helpful if you show hot to insert data using postman
@sachithnanayakkara40272 жыл бұрын
Good One 👍
@fazlulkareem2544 жыл бұрын
great tutorial man!!!............keep doing
@ab-real-life4 жыл бұрын
You just solved a big problem for me thnaks
@MandatiSuvarna4 ай бұрын
springMVC lo Hibernate Relationship mapping chesi vdeo upload cheyandi
@feezankhattak15733 жыл бұрын
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 :)
@KindsonTheTechPro3 жыл бұрын
I get your point but we need to be careful with this so we avoid infinite recursion. How to do this is explained here kzbin.info/www/bejne/o5rRZmhseJxnb80
@ashraym25334 жыл бұрын
Thank you so much....🤩🤩helped me a lot
@sreerammaramwira55133 жыл бұрын
His name is "Kindson The Tech Pro"
@KindsonTheTechPro3 жыл бұрын
😃 😃 😃
@Rk_itz_me4 жыл бұрын
Awesome man...keep it up
@KindsonTheTechPro4 жыл бұрын
Thanks a ton! Also remember to subscribe too!
@oracle87984 жыл бұрын
brilliant tutorial
@Das.Kleine.Krokodil2 жыл бұрын
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.
@KindsonTheTechPro2 жыл бұрын
Yes, if you must have two separate json files. But why do you need two separate json?
@darshandarshu417111 ай бұрын
thanks a lot
@KindsonTheTechPro4 ай бұрын
You are most welcome😊
@samjuthecoder23103 жыл бұрын
So great!!!
@samiyahyabey41043 жыл бұрын
I did the exact same thing and I have : @Column(s) not allowed on a @ManyToOne property
@fookoboy96232 жыл бұрын
how to enter data inside of that table in json formet
@sondray93694 жыл бұрын
Thank you so much boss.
@tamometreveli70183 жыл бұрын
thanks
@lovachittumuri3 жыл бұрын
Nice explained
@mandeepsharma83053 жыл бұрын
Thank you sir.
@Minnikittyworld4 жыл бұрын
i need code how can i access.
@stefanmanev20614 жыл бұрын
Thanks dude
@gameplays9973 жыл бұрын
thank you !
@KindsonTheTechPro3 жыл бұрын
You're welcome!
@Himanshubishnoi-td3nh11 ай бұрын
then why dont we just make only manytoone in students??
@pmpm45376 ай бұрын
This! I have the same question
@anushakuthuru1503 жыл бұрын
Can u provide GitHub link?
@hadiansari55742 жыл бұрын
😍😍😍
@monabeldi2923 жыл бұрын
genius
@vijaymane75412 жыл бұрын
CoolDB🤣😂
@Oliver-pj5bu Жыл бұрын
studeint
@Photoshopper201011 ай бұрын
I do the same but @OneToMany cases infinite recursion
@KindsonTheTechPro4 ай бұрын
I explained the solution here kzbin.info/www/bejne/mmbCe4CBdtR2h6M