Part 1 - Relationships in Hibernate Using SpringBoot OneToMany and ManyToOne

  Рет қаралды 78,424

Kindson The Tech Pro

Kindson The Tech Pro

Күн бұрын

Пікірлер: 87
@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 Жыл бұрын
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
@KindsonTheTechPro
@KindsonTheTechPro 4 ай бұрын
You're so welcome😊
@ashuzguitar
@ashuzguitar 3 жыл бұрын
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
@rks_grd Жыл бұрын
Your statements are also very useful I found..now its 110% clear concept !!
@ashuzguitar
@ashuzguitar Жыл бұрын
@@rks_grd Thanks
@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 5 жыл бұрын
Awesome video. Searched a lot to understand this concept. Finally I got it. Thank you.
@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 2 жыл бұрын
You couldn't be clearer than this! Thanks a lot!
@dharmalingeswarparasa1609
@dharmalingeswarparasa1609 2 жыл бұрын
Thank you very much, Great explanation, this content deserves more views
@KindsonTheTechPro
@KindsonTheTechPro 2 жыл бұрын
Glad it was helpful!
@franciscoalves7098
@franciscoalves7098 Ай бұрын
the goat, thank you, u saved me and my final project
@piotrhirnyk5577
@piotrhirnyk5577 Жыл бұрын
The way your presented this is awesome! Thanks a lot!
@KindsonTheTechPro
@KindsonTheTechPro 4 ай бұрын
My pleasure 😊
@CodeWithRains
@CodeWithRains 7 ай бұрын
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 ,
@KindsonTheTechPro
@KindsonTheTechPro 5 ай бұрын
Many thanks 😊
@siyavashvaezafshar4265
@siyavashvaezafshar4265 4 жыл бұрын
You are hell of a teacher my friend
@KieranMueller
@KieranMueller Жыл бұрын
Awesome video, clear and concise
@angelmora6877
@angelmora6877 7 ай бұрын
You're the goat bro thnk u so much
@KindsonTheTechPro
@KindsonTheTechPro 6 ай бұрын
Nice to hear from a soccer fan!!
@ramonrodrigueslima5684
@ramonrodrigueslima5684 2 жыл бұрын
Thanks, this lesson was right in time!!
@rks_grd
@rks_grd Жыл бұрын
Vey clear and useful video. Thanks you !!
@KindsonTheTechPro
@KindsonTheTechPro 5 ай бұрын
Glad it was helpful!
@mohamedboukourdane8860
@mohamedboukourdane8860 4 жыл бұрын
as always, great tutorial, thank you man
@chrismajuba
@chrismajuba Жыл бұрын
Perfect explanation 👌
@KindsonTheTechPro
@KindsonTheTechPro 4 ай бұрын
😊
@ismailshaik416
@ismailshaik416 2 жыл бұрын
Easy to understand thank you
@KindsonTheTechPro
@KindsonTheTechPro 2 жыл бұрын
Glad it helped!
@stefancondriea8195
@stefancondriea8195 3 жыл бұрын
The best explanation i get
@KindsonTheTechPro
@KindsonTheTechPro 3 жыл бұрын
Thanks a lot!😊
@CodeWithRains
@CodeWithRains 7 ай бұрын
Teach about casecad also ! ?
@Cavdar2012
@Cavdar2012 5 ай бұрын
thanks a lot. how can i get to the next parts?
@KindsonTheTechPro
@KindsonTheTechPro 5 ай бұрын
This is the next part, Part 2 kzbin.info/www/bejne/g3mcpaBojL6GbJosi=VIlHWNZZz0zAbPWk
@damilolaodude9733
@damilolaodude9733 9 ай бұрын
Thank you 🙌🏽
@KindsonTheTechPro
@KindsonTheTechPro 5 ай бұрын
😊
@CodeWithRains
@CodeWithRains 7 ай бұрын
in case of table name is different yes in class it is student but we gave the table="students_details" then how
@beytullahyayla7401
@beytullahyayla7401 2 жыл бұрын
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
@studyingit9762 Жыл бұрын
Great Video!!!!
@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 3 жыл бұрын
@@nicolahorst8529 Please fruitfull your anwer with some code. :)
@nicolahorst8529
@nicolahorst8529 3 жыл бұрын
@@feezankhattak1573 hi can you specify what exactly you need (as code) ? If you could specify I can provide you some code of course. :)
@markoacimovic9889
@markoacimovic9889 3 жыл бұрын
Excellent video .
@sumanpatil327
@sumanpatil327 4 жыл бұрын
It will be helpful if you show hot to insert data using postman
@sachithnanayakkara4027
@sachithnanayakkara4027 2 жыл бұрын
Good One 👍
@fazlulkareem254
@fazlulkareem254 4 жыл бұрын
great tutorial man!!!............keep doing
@ab-real-life
@ab-real-life 4 жыл бұрын
You just solved a big problem for me thnaks
@MandatiSuvarna
@MandatiSuvarna 4 ай бұрын
springMVC lo Hibernate Relationship mapping chesi vdeo upload cheyandi
@feezankhattak1573
@feezankhattak1573 3 жыл бұрын
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 3 жыл бұрын
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
@ashraym2533
@ashraym2533 4 жыл бұрын
Thank you so much....🤩🤩helped me a lot
@sreerammaramwira5513
@sreerammaramwira5513 3 жыл бұрын
His name is "Kindson The Tech Pro"
@KindsonTheTechPro
@KindsonTheTechPro 3 жыл бұрын
😃 😃 😃
@Rk_itz_me
@Rk_itz_me 4 жыл бұрын
Awesome man...keep it up
@KindsonTheTechPro
@KindsonTheTechPro 4 жыл бұрын
Thanks a ton! Also remember to subscribe too!
@oracle8798
@oracle8798 4 жыл бұрын
brilliant tutorial
@Das.Kleine.Krokodil
@Das.Kleine.Krokodil 2 жыл бұрын
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 2 жыл бұрын
Yes, if you must have two separate json files. But why do you need two separate json?
@darshandarshu4171
@darshandarshu4171 11 ай бұрын
thanks a lot
@KindsonTheTechPro
@KindsonTheTechPro 4 ай бұрын
You are most welcome😊
@samjuthecoder2310
@samjuthecoder2310 3 жыл бұрын
So great!!!
@samiyahyabey4104
@samiyahyabey4104 3 жыл бұрын
I did the exact same thing and I have : @Column(s) not allowed on a @ManyToOne property
@fookoboy9623
@fookoboy9623 2 жыл бұрын
how to enter data inside of that table in json formet
@sondray9369
@sondray9369 4 жыл бұрын
Thank you so much boss.
@tamometreveli7018
@tamometreveli7018 3 жыл бұрын
thanks
@lovachittumuri
@lovachittumuri 3 жыл бұрын
Nice explained
@mandeepsharma8305
@mandeepsharma8305 3 жыл бұрын
Thank you sir.
@Minnikittyworld
@Minnikittyworld 4 жыл бұрын
i need code how can i access.
@stefanmanev2061
@stefanmanev2061 4 жыл бұрын
Thanks dude
@gameplays997
@gameplays997 3 жыл бұрын
thank you !
@KindsonTheTechPro
@KindsonTheTechPro 3 жыл бұрын
You're welcome!
@Himanshubishnoi-td3nh
@Himanshubishnoi-td3nh 11 ай бұрын
then why dont we just make only manytoone in students??
@pmpm4537
@pmpm4537 6 ай бұрын
This! I have the same question
@anushakuthuru150
@anushakuthuru150 3 жыл бұрын
Can u provide GitHub link?
@hadiansari5574
@hadiansari5574 2 жыл бұрын
😍😍😍
@monabeldi292
@monabeldi292 3 жыл бұрын
genius
@vijaymane7541
@vijaymane7541 2 жыл бұрын
CoolDB🤣😂
@Oliver-pj5bu
@Oliver-pj5bu Жыл бұрын
studeint
@Photoshopper2010
@Photoshopper2010 11 ай бұрын
I do the same but @OneToMany cases infinite recursion
@KindsonTheTechPro
@KindsonTheTechPro 4 ай бұрын
I explained the solution here kzbin.info/www/bejne/mmbCe4CBdtR2h6M
Part 2 - Get List of Students in a Department OneToMany Relationship
12:20
Kindson The Tech Pro
Рет қаралды 9 М.
She made herself an ear of corn from his marmalade candies🌽🌽🌽
00:38
Valja & Maxim Family
Рет қаралды 18 МЛН
人是不能做到吗?#火影忍者 #家人  #佐助
00:20
火影忍者一家
Рет қаралды 20 МЛН
99.9% IMPOSSIBLE
00:24
STORROR
Рет қаралды 31 МЛН
小丑教训坏蛋 #小丑 #天使 #shorts
00:49
好人小丑
Рет қаралды 54 МЛН
Microservices using SpringBoot | Full Example
1:21:39
Daily Code Buffer
Рет қаралды 1 МЛН
#12 Hibernate Tutorial | Mapping Relations Theory
13:14
Telusko
Рет қаралды 315 М.
Solving one of PostgreSQL's biggest weaknesses.
17:12
Dreams of Code
Рет қаралды 226 М.
#11. OneToMany Relationship | ManyToOne Relationship Hibernate
23:45
Learn Code With Durgesh
Рет қаралды 176 М.
Association Mapping - One-To-Many Bidirectional Join column
18:49
Miss Xing (邢老师)
Рет қаралды 11 М.
Use case JPA, Hibernate Spring Data, One To Many, One To One
1:17:22
Professeur Mohamed YOUSSFI
Рет қаралды 21 М.
What is Database Sharding?
9:05
Anton Putra
Рет қаралды 72 М.
She made herself an ear of corn from his marmalade candies🌽🌽🌽
00:38
Valja & Maxim Family
Рет қаралды 18 МЛН