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
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.
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 !
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 ,
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 ?
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 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 :)
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.
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 :)
I get your point but we need to be careful with this so we avoid infinite recursion. How to do this is explained here ruclips.net/video/min556C749k/видео.html
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!
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
You're so welcome😊
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.
Your statements are also very useful I found..now its 110% clear concept !!
@@rks_grd Thanks
You couldn't be clearer than this! Thanks a lot!
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 !
Awesome video. Searched a lot to understand this concept. Finally I got it. Thank you.
Best Best Best Tutorial and way to explain is amazing, bro I am literally speechless. Bro, I owe you this one.
Thank you very much, Great explanation, this content deserves more views
Glad it was helpful!
the goat, thank you, u saved me and my final project
The way your presented this is awesome! Thanks a lot!
My pleasure 😊
You are hell of a teacher my friend
Awesome video, clear and concise
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 ,
Many thanks 😊
Thanks, this lesson was right in time!!
in case of table name is different yes in class it is student but we gave the table="students_details"
then how
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 ?
Teach about casecad also ! ?
as always, great tutorial, thank you man
thanks a lot. how can i get to the next parts?
This is the next part, Part 2 ruclips.net/video/MH9tm2WYS68/видео.htmlsi=VIlHWNZZz0zAbPWk
Perfect explanation 👌
😊
Vey clear and useful video. Thanks you !!
Glad it was helpful!
You're the goat bro thnk u so much
Nice to hear from a soccer fan!!
how to enter data inside of that table in json formet
Excellent video .
Easy to understand thank you
Glad it helped!
Thank you 🙌🏽
😊
Good One 👍
i need code how can i access.
Great Video!!!!
It will be helpful if you show hot to insert data using postman
The best explanation i get
Thanks a lot!😊
I did the exact same thing and I have : @Column(s) not allowed on a @ManyToOne property
great tutorial man!!!............keep doing
His name is "Kindson The Tech Pro"
😃 😃 😃
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?
Hi! Did you get the answer? I have the same question
@@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 :)
@@nicolahorst8529 Thank you very much! 🙏
@@nicolahorst8529 Please fruitfull your anwer with some code. :)
@@feezankhattak1573 hi can you specify what exactly you need (as code) ? If you could specify I can provide you some code of course. :)
brilliant tutorial
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.
Yes, if you must have two separate json files. But why do you need two separate json?
You just solved a big problem for me thnaks
Nice explained
Thank you so much....🤩🤩helped me a lot
springMVC lo Hibernate Relationship mapping chesi vdeo upload cheyandi
So great!!!
Awesome man...keep it up
Thanks a ton! Also remember to subscribe too!
thanks
Thank you so much boss.
thanks a lot
You are most welcome😊
Thank you sir.
Can u provide GitHub link?
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 :)
I get your point but we need to be careful with this so we avoid infinite recursion. How to do this is explained here ruclips.net/video/min556C749k/видео.html
Thanks dude
then why dont we just make only manytoone in students??
This! I have the same question
thank you !
You're welcome!
😍😍😍
genius
CoolDB🤣😂
studeint
I do the same but @OneToMany cases infinite recursion
I explained the solution here ruclips.net/video/d5_JMKAoCQA/видео.html