Part 1 - Relationships in Hibernate Using SpringBoot OneToMany and ManyToOne

Ғылым және технология

Relationships in Hibernate Using SpringBoot OneToMany and ManyToOne
Tutorial Page: www.kindsonthegenius.com/2019...
Subscribe Kindson The Tech Pro KZread: 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

Пікірлер: 69

  • @Xy-gx8ou
    @Xy-gx8ou2 жыл бұрын

    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!

  • @diegoruiz5265
    @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 !

  • @QwertyQwerty-so4kw
    @QwertyQwerty-so4kw5 ай бұрын

    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

  • @renitalobo927
    @renitalobo9274 жыл бұрын

    Awesome video. Searched a lot to understand this concept. Finally I got it. Thank you.

  • @gabrielmatos1233
    @gabrielmatos1233 Жыл бұрын

    You couldn't be clearer than this! Thanks a lot!

  • @mohamedboukourdane8860
    @mohamedboukourdane88603 жыл бұрын

    as always, great tutorial, thank you man

  • @uddeshyaseth9732
    @uddeshyaseth97322 жыл бұрын

    Best Best Best Tutorial and way to explain is amazing, bro I am literally speechless. Bro, I owe you this one.

  • @piotrhirnyk5577
    @piotrhirnyk55776 ай бұрын

    The way your presented this is awesome! Thanks a lot!

  • @siyavashvaezafshar4265
    @siyavashvaezafshar42653 жыл бұрын

    You are hell of a teacher my friend

  • @ramonrodrigueslima5684
    @ramonrodrigueslima5684 Жыл бұрын

    Thanks, this lesson was right in time!!

  • @ashuzguitar
    @ashuzguitar2 жыл бұрын

    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

    4 ай бұрын

    Your statements are also very useful I found..now its 110% clear concept !!

  • @ashuzguitar

    @ashuzguitar

    4 ай бұрын

    @@rksCraze Thanks

  • @fazlulkareem254
    @fazlulkareem2543 жыл бұрын

    great tutorial man!!!............keep doing

  • @KieranMueller
    @KieranMueller10 ай бұрын

    Awesome video, clear and concise

  • @damilolaodude9733
    @damilolaodude97336 күн бұрын

    Thank you 🙌🏽

  • @chrismajuba
    @chrismajuba5 ай бұрын

    Perfect explanation 👌

  • @oracle8798
    @oracle87983 жыл бұрын

    brilliant tutorial

  • @ashraym2533
    @ashraym25333 жыл бұрын

    Thank you so much....🤩🤩helped me a lot

  • @rksCraze
    @rksCraze4 ай бұрын

    Vey clear and useful video. Thanks you !!

  • @dharmalingeswarparasa1609
    @dharmalingeswarparasa1609 Жыл бұрын

    Thank you very much, Great explanation, this content deserves more views

  • @KindsonTheTechPro

    @KindsonTheTechPro

    Жыл бұрын

    Glad it was helpful!

  • @markoacimovic9889
    @markoacimovic98893 жыл бұрын

    Excellent video .

  • @samjuthecoder2310
    @samjuthecoder23103 жыл бұрын

    So great!!!

  • @sondray9369
    @sondray93693 жыл бұрын

    Thank you so much boss.

  • @studyingit9762
    @studyingit9762 Жыл бұрын

    Great Video!!!!

  • @ab-real-life
    @ab-real-life3 жыл бұрын

    You just solved a big problem for me thnaks

  • @mandeepsharma8305
    @mandeepsharma83053 жыл бұрын

    Thank you sir.

  • @sachithnanayakkara4027
    @sachithnanayakkara4027 Жыл бұрын

    Good One 👍

  • @darshandarshu4171
    @darshandarshu41712 ай бұрын

    thanks a lot

  • @lovachittumuri
    @lovachittumuri3 жыл бұрын

    Nice explained

  • @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 ?

  • @Rajkamal_M
    @Rajkamal_M3 жыл бұрын

    Awesome man...keep it up

  • @KindsonTheTechPro

    @KindsonTheTechPro

    3 жыл бұрын

    Thanks a ton! Also remember to subscribe too!

  • @stefanmanev2061
    @stefanmanev20613 жыл бұрын

    Thanks dude

  • @sumanpatil327
    @sumanpatil3273 жыл бұрын

    It will be helpful if you show hot to insert data using postman

  • @tamometreveli7018
    @tamometreveli70183 жыл бұрын

    thanks

  • @ismailshaik416
    @ismailshaik416 Жыл бұрын

    Easy to understand thank you

  • @KindsonTheTechPro

    @KindsonTheTechPro

    Жыл бұрын

    Glad it helped!

  • @gameplays997
    @gameplays9973 жыл бұрын

    thank you !

  • @KindsonTheTechPro

    @KindsonTheTechPro

    3 жыл бұрын

    You're welcome!

  • @stefancondriea8195
    @stefancondriea81952 жыл бұрын

    The best explanation i get

  • @KindsonTheTechPro

    @KindsonTheTechPro

    2 жыл бұрын

    Thanks a lot!😊

  • @gowripravallika8895
    @gowripravallika88954 жыл бұрын

    i need code how can i access.

  • @fookoboy9623
    @fookoboy9623 Жыл бұрын

    how to enter data inside of that table in json formet

  • @samiyahyabey4104
    @samiyahyabey41043 жыл бұрын

    I did the exact same thing and I have : @Column(s) not allowed on a @ManyToOne property

  • @hadiansari5574
    @hadiansari5574 Жыл бұрын

    😍😍😍

  • @monabeldi292
    @monabeldi2922 жыл бұрын

    genius

  • @sreerammaramwira5513
    @sreerammaramwira55132 жыл бұрын

    His name is "Kindson The Tech Pro"

  • @KindsonTheTechPro

    @KindsonTheTechPro

    2 жыл бұрын

    😃 😃 😃

  • @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?

  • @feezankhattak1573
    @feezankhattak15732 жыл бұрын

    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 kzread.info/dash/bejne/n52il5dvc5qaac4.html

  • @anushakuthuru150
    @anushakuthuru1503 жыл бұрын

    Can u provide GitHub link?

  • @vijaymane7541
    @vijaymane7541 Жыл бұрын

    CoolDB🤣😂

  • @nicolahorst8529
    @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?

  • @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. :)

  • @Himanshubishnoi-td3nh
    @Himanshubishnoi-td3nh2 ай бұрын

    then why dont we just make only manytoone in students??

  • @Oliver-pj5bu
    @Oliver-pj5bu Жыл бұрын

    studeint

  • @Photoshopper2010
    @Photoshopper20102 ай бұрын

    I do the same but @OneToMany cases infinite recursion

Келесі