Entity Mapping | @OneToOne, @OneToMany, @JoinColumn| Spring Data JPA | Spring Boot | Dev2Prod Coding

แชร์
ฝัง
  • เผยแพร่เมื่อ 2 ก.พ. 2025

ความคิดเห็น • 112

  • @ushasharma2631
    @ushasharma2631 2 ปีที่แล้ว +38

    Just because of your perfect solution and exact explanation instead of keeping it long you made it short. I am subscribing your channel. Good Efforts thank you :)

  • @wantedlepota9960
    @wantedlepota9960 2 ปีที่แล้ว +12

    I like the fact that you have already created the classes(entity, controllers) before you record the video, which makes the video simple and short

  • @zuberdiwan8123
    @zuberdiwan8123 ปีที่แล้ว +1

    Very Good Explained..Thank You.....

  • @Parveen_Mehta
    @Parveen_Mehta หลายเดือนก่อน

    Good point about the tutorial is short and to the point. Keep it up

    • @dev2prodcoding
      @dev2prodcoding  หลายเดือนก่อน

      Thanks...Glad it helped

  • @muskanyadav2391
    @muskanyadav2391 6 หลายเดือนก่อน

    Never really understood the concept of mappings until I watched this video. You made it so simple and easy..keep uploading. Thanks!!

  • @indranilganguly4750
    @indranilganguly4750 2 ปีที่แล้ว +2

    Great Video...Helped me a lot..Thanks

  • @ujjwalsingh3160
    @ujjwalsingh3160 4 หลายเดือนก่อน

    Nice Explanation !! You Got 1 Subscriber!!

  • @jaymichalek1693
    @jaymichalek1693 ปีที่แล้ว +2

    Awesome explanation. I hope you can make more videos.

  • @shaharukhshaikh4676
    @shaharukhshaikh4676 ปีที่แล้ว +1

    No one beat this content on TH-cam thnks bro🎉

  • @kosalaTravellingVlogs27
    @kosalaTravellingVlogs27 2 ปีที่แล้ว +1

    Perfect Explanation. Thanks

  • @janstefangehrmann1139
    @janstefangehrmann1139 10 หลายเดือนก่อน

    Thank you so much. Now I understand how to handle relations :)

  • @jitendrapatil3276
    @jitendrapatil3276 2 ปีที่แล้ว

    Great Video. Just subscribed....

  • @manideepkumar959
    @manideepkumar959 ปีที่แล้ว +4

    Bro, in address class , during 1-1 7:59 before and after using @OneToOne(mppedby="address") the output/table structure of address is same na, then can u tell me what is the use of that annotation

  • @gauravsrivastava17
    @gauravsrivastava17 8 หลายเดือนก่อน

    Short and to the point 🔥🔥🔥🔥

  • @suthar_ravi
    @suthar_ravi ปีที่แล้ว +1

    Great explanation 👌🏻😇

  • @komeshwari319
    @komeshwari319 4 หลายเดือนก่อน

    your video really very helpfull for me thankyou

  • @neerajayarasani8456
    @neerajayarasani8456 ปีที่แล้ว +1

    short and clear. Thank you

  • @swadeshswaroopbehera8465
    @swadeshswaroopbehera8465 2 ปีที่แล้ว +1

    great explanation. keep up the good work.

  • @connect2soumen
    @connect2soumen 2 ปีที่แล้ว +1

    Neat and clean video.

  • @Emanuel-yb3qk
    @Emanuel-yb3qk 10 หลายเดือนก่อน

    Thanks for explaning it too easy bro. Greetings from Mexico.

    • @dev2prodcoding
      @dev2prodcoding  10 หลายเดือนก่อน

      Glad it helped..Happy Learning!

    • @siddhantrakesh1245
      @siddhantrakesh1245 9 หลายเดือนก่อน

      ​@@dev2prodcoding bro i have one doubt

  • @prrashantajn7154
    @prrashantajn7154 หลายเดือนก่อน

    Good way of teaching

  • @virendrasingh-en1yy
    @virendrasingh-en1yy 2 ปีที่แล้ว

    nice explanation clear my all doubts with in short time thankyou so much

  • @HimanshuVerma-ko7vr
    @HimanshuVerma-ko7vr ปีที่แล้ว +1

    very helpful

  • @forinda
    @forinda ปีที่แล้ว +1

    Perfect explanation😊

  • @karthickdk9313
    @karthickdk9313 3 ปีที่แล้ว +1

    thank u so much.. upload more videos .. based on entity

  • @harishchandra8057
    @harishchandra8057 3 ปีที่แล้ว +1

    Nice explanation sir..

  • @navanjanayasith4030
    @navanjanayasith4030 3 หลายเดือนก่อน

    Good one bro

  • @abhiramnair2195
    @abhiramnair2195 2 ปีที่แล้ว

    nice video..cleared all my doubts.thank you

  • @tonycavanagh1929
    @tonycavanagh1929 2 ปีที่แล้ว

    Brilliant, well presented and consice.

  • @surajdevrajak9267
    @surajdevrajak9267 2 ปีที่แล้ว +1

    Good work man

  • @atharvsingh6901
    @atharvsingh6901 2 ปีที่แล้ว

    Much appreciated dude🙂🙏

  • @thirumalyadav7509
    @thirumalyadav7509 2 ปีที่แล้ว

    Best explanation bro

  • @samnayakawadi
    @samnayakawadi 2 ปีที่แล้ว

    Subscribed. Thanks.

  • @adarsh6750
    @adarsh6750 6 หลายเดือนก่อน +1

    How foreign key is created in address table? You mentioned address reference inside Employee entity right! then how foreign key is created inside address table?

    • @muthupriya374
      @muthupriya374 หลายเดือนก่อน

      Yep, same doubt

  • @m_sharif
    @m_sharif 2 ปีที่แล้ว

    Just to the point.. Thank you.

    • @dev2prodcoding
      @dev2prodcoding  2 ปีที่แล้ว +1

      I am Glad you like it. Thanks!

  • @HongruiLiu-t7d
    @HongruiLiu-t7d ปีที่แล้ว +1

    Thank u!

  • @abhisheknayakanti8918
    @abhisheknayakanti8918 3 หลายเดือนก่อน

    sir,In @OnetoMany mapping if you want to join address id column into employee table...u are creating reference variable in employee entity only...at the same time,if you want to join colum to address table also u are doing it from employee table only...please clarify...im under impression that if we want to join a column in our target table...we have to create a reference variable of the table that we are fetching the table from,in our target table

  • @kotidinta1585
    @kotidinta1585 2 ปีที่แล้ว +1

    Bro nice explaination. Could please make video on total spring project

  • @jakub.686
    @jakub.686 2 ปีที่แล้ว

    Thank You for this video, it helped me a lot

  • @INDIRAKUMARL-h5x
    @INDIRAKUMARL-h5x 6 หลายเดือนก่อน

    Thank you bro

  • @Doum4n
    @Doum4n 11 หลายเดือนก่อน

    Thank you very much

  • @hrishikeshmukherjee8988
    @hrishikeshmukherjee8988 2 ปีที่แล้ว +1

    wow

  • @sproutboot
    @sproutboot 2 ปีที่แล้ว +1

    I might sound stupid but I found it interesting that f.k @OneToOne private Address address, Employee class has a attribute of address which data type is Address, and it actually stores int value which is addressID? and by setting cascade.all, when we send request payload for saving emps, it will affect Address class and save address info on Address table. And the fk column in emp table will show just int value(AddrID). I learned a lot. and I hope I understand correctly. Thanks!

  • @HusnainAshfaq-kr5or
    @HusnainAshfaq-kr5or 9 หลายเดือนก่อน

    good

  • @Leo-fi6bg
    @Leo-fi6bg 2 ปีที่แล้ว +2

    Hi bro .. how to configure my slq or post man in application properties.. will u please solve that

    • @dev2prodcoding
      @dev2prodcoding  2 ปีที่แล้ว +1

      th-cam.com/video/3wIRc94piU8/w-d-xo.html please check this video where I have explained how to configure DB using application.properties file.
      Code Link - > github.com/Dev2ProdCoding/spring-data-jpa-springboot/blob/master/src/main/resources/application.properties

  • @wellingtonfjr
    @wellingtonfjr ปีที่แล้ว

    nice video!! +1 sub, thanks

  • @nguyenquangtinh4911
    @nguyenquangtinh4911 2 ปีที่แล้ว +1

    thank you

  • @simon8284
    @simon8284 11 หลายเดือนก่อน

    Sex bro Sex, even I couldn't understand this from Java Brains, Be Coder, and Code With Durgesh. You made a flawless victory...

  • @weixiangng8279
    @weixiangng8279 ปีที่แล้ว

    How to implement it with Angular though?

  • @pranshugautam8890
    @pranshugautam8890 2 ปีที่แล้ว +1

    I want to ask one q : when you used unidirectional you have not written one to one in address class and when you showed bidirectional then you write one-to-one in address class but there was no difference in output that you showed so why we have to write one-to-one in address class when there is no difference in output?

    • @donDan94
      @donDan94 ปีที่แล้ว

      yeah right, I just watched the video and had the same question. Can I ask you, did you find any information about this, is there any difference? cheers!

    • @ChVenki
      @ChVenki 7 หลายเดือนก่อน

      I too have the same question

  • @Rasmusorum
    @Rasmusorum 2 ปีที่แล้ว

    How does it make sense to make a @onetoone relationship? Why not just embed the class?

  • @dod-do-or-dont
    @dod-do-or-dont 9 หลายเดือนก่อน

    Why 90% od tutorials are low quality indian ones?

  • @venkateshejjigiri-4137
    @venkateshejjigiri-4137 ปีที่แล้ว

    fk_add_id is not reflecting in employee table. and no data in adreess table. pls help me

  • @siyansunny3090
    @siyansunny3090 2 ปีที่แล้ว

    Good explanation.. waiting for next video...

  • @sonubandigi3788
    @sonubandigi3788 ปีที่แล้ว

    bro dhanyawad

  • @vinaymathapati4077
    @vinaymathapati4077 ปีที่แล้ว +1

    Where is properties file

    • @dev2prodcoding
      @dev2prodcoding  ปีที่แล้ว

      github.com/Dev2ProdCoding/spring-data-jpa-mappings/tree/master/src/main/resources

  • @harishchandra8057
    @harishchandra8057 3 ปีที่แล้ว

    plz upload the next part ...onetomany bidirectional and manytomany

  • @ash416
    @ash416 2 ปีที่แล้ว

    Hello bro please reply
    I have to separate entities flight and airport and I don't want to save the data for airport while saving flight,since airport table is already populated
    Hope it make sense

  • @sachithnanayakkara4027
    @sachithnanayakkara4027 2 ปีที่แล้ว +3

    How about One to Many & Many to One Mapping and also many to many mapping? Can you make a video for that

    • @dev2prodcoding
      @dev2prodcoding  2 ปีที่แล้ว +1

      th-cam.com/video/v40e5SOMftQ/w-d-xo.html

  • @ayushkumarjajodia8828
    @ayushkumarjajodia8828 2 ปีที่แล้ว +1

    what will be the difference in table structure b/w uni and bi direction of one to one mapping?

  • @KlanBr1
    @KlanBr1 ปีที่แล้ว

    if i duplicate my request in postman, so duplicate my entities, that not shoul be happen, because then i have duplicate employees and addresses, how do yo stop this behavior, you put some logical in your service?(sorry for my english)

  • @eosorto55
    @eosorto55 6 หลายเดือนก่อน

    brother podrias hacer uno con orden bbidireccional

  • @HuieChannel
    @HuieChannel 10 หลายเดือนก่อน

    bro these indians are hella clutch

    • @dev2prodcoding
      @dev2prodcoding  5 หลายเดือนก่อน

      No doubt

    • @HuieChannel
      @HuieChannel 5 หลายเดือนก่อน

      @@dev2prodcoding hahaha because of you I finished my CS course XD

  • @ankushkamble911
    @ankushkamble911 2 ปีที่แล้ว

    Great Explanation bro...but one error is occuring actually when we run many to one first time it will save the data but if we add another member of same addresse it will update the data...that means fk_emp_id 1 will replace by 2 so...what to do plz help me

    • @dev2prodcoding
      @dev2prodcoding  2 ปีที่แล้ว

      Can you post your employee and address entity here for one to many mapping?

  • @roshanpawar571
    @roshanpawar571 2 ปีที่แล้ว +1

    Nice video..... but how to update mapping data

    • @dev2prodcoding
      @dev2prodcoding  2 ปีที่แล้ว

      Thanks @roshan....I am assuming by update mapping data you mean updating records in db. For updating you can use same method you used to save it i.e saveAll() or save().
      Let me know in case of any other query.

  • @SKMishra2023
    @SKMishra2023 3 ปีที่แล้ว +1

    8:12

  • @kandruvinay6736
    @kandruvinay6736 2 ปีที่แล้ว

    Push the file to git

    • @dev2prodcoding
      @dev2prodcoding  2 ปีที่แล้ว

      url : github.com/Dev2ProdCoding/spring-data-jpa-mappings.git

  • @tobyhamilton2153
    @tobyhamilton2153 ปีที่แล้ว +1

    You didn't even show how to right at the get mapping, so you just showed how to do the annotations, how is someone meant to known how to make the get request!!!

  • @venu5791
    @venu5791 2 ปีที่แล้ว

    can you add @jsonbackReference, @jsonmanagedreference along with the mappings

  • @kirindev
    @kirindev ปีที่แล้ว +1

    thank you