Spring Data JPA Entity mappings | One-to-One | One-to-Many | Many-to-One | Many-to-Many mappings

Поділитися
Вставка
  • Опубліковано 7 січ 2025

КОМЕНТАРІ • 43

  • @iuriirudov
    @iuriirudov 2 роки тому +3

    Thank you for this video and explanation of the mappings. It is by far the best for me to understand with code example. Quick and easy, not boring at all, right to the point.

  • @himanshubhusanrath212
    @himanshubhusanrath212 Рік тому

    Thank you so much for this video. The concepts are explained in a very detailed manner. This helped me a lot. May God bless you !

  • @magadiflo-dev
    @magadiflo-dev 2 роки тому

    Excellent. Thanks for sharing your knowledge. Greetings from Perú.

  • @simondif1470
    @simondif1470 3 роки тому +1

    Regarding many-to-many, normally you would like to reuse the item rows when several customers share a same item. Thus the cascade type should not be ALL. Otherwise when you remove a customer, all its items will be removed as well, which makes sense in the case of one-to-many but not many-to-many (and many-to-one).

  • @gulbalasalamov1367
    @gulbalasalamov1367 2 роки тому

    Many thanks!
    All type of relations worked for me

  • @repakanagesh7615
    @repakanagesh7615 3 роки тому +1

    Great! thanks for covering all in single video

  • @antorodrigo2084
    @antorodrigo2084 3 роки тому +2

    Really useful to understand the entity annotations. Thanks!

  • @raheemsk3552
    @raheemsk3552 4 роки тому +3

    Nice explanation bro.... thank you

  • @Trazynn
    @Trazynn 3 роки тому

    Don't worry man. Subscribed. Keep going. There's very little about entity mappings on UA-cam.

  • @atiqurrahman7260
    @atiqurrahman7260 3 роки тому

    finally some decent explanation.
    Thanks

  • @rahuldeulgaonkar
    @rahuldeulgaonkar 3 роки тому

    Thank you. Very nice explanation.

  • @nileshshinde6718
    @nileshshinde6718 2 роки тому

    Great explanation... Thank you

  • @moggarajesh5240
    @moggarajesh5240 3 роки тому

    Nice explanation...and thank you so much

  • @piumasan1983
    @piumasan1983 2 роки тому +1

    Great video! One question: why do you change from List to Set?

  • @manjunathmaruthi233
    @manjunathmaruthi233 3 роки тому +1

    Hi, thanks for the video, would you mind explaining when to go with unidirectional, bidirectional & Join table

    • @technotowntechie9732
      @technotowntechie9732  3 роки тому +6

      Unidirectional Relationships:-
      1. Unidirectional is a relation where one side does not know about the relation.
      2. In a unidirectional relationship, only one entity has a relationship field or property that refers to the other. For example, Line Item would have a relationship field that identifies Product, but Product would not have a relationship field or property for Line Item. In other words, Line Item knows about Product, but Product doesn’t know which Line Item instances refer to it.
      Bidirectional Relationships:-
      1. Bidirectional relationship provides navigational access in both directions, so that you can access the other side without explicit queries.
      2. In a bidirectional relationship, each entity has a relationship field or property that refers to the other entity. Through the relationship field or property, an entity class’s code can access its related object. If an entity has a related field, the entity is said to “know” about its related object. For example, if Order knows what Line Item instances it has and if Line Item knows what Order it belongs to, they have a bidirectional relationship.

    • @RN-jo8zt
      @RN-jo8zt 2 роки тому

      @@technotowntechie9732 can you please explain littel bit more about point1.
      just confused about --> other side without explicit queries.

  • @younesszgr3162
    @younesszgr3162 Рік тому

    bro , you rock !

  • @priyankjoshi3018
    @priyankjoshi3018 3 роки тому

    Nice and very well explained.

  • @bisamallaajaykumar4255
    @bisamallaajaykumar4255 Рік тому

    Thanks a lot very clear :)

  • @christopherami8142
    @christopherami8142 3 роки тому

    Thanks mate ! i need this video

  • @dllm3tommy741
    @dllm3tommy741 Рік тому

    Thanks for the video

  • @pasupulaphaneesh4049
    @pasupulaphaneesh4049 3 роки тому +2

    Explanation is too fast. All the relationships are explained in one video in short time and couldn't able to understand. Appreciate if you can do one each relational mapping with example and showing DB changes along with the code.

  • @singarajusreedhar
    @singarajusreedhar 7 місяців тому

    for aan example of bidirectional one t one when the get all is called on referencing entity it goes in infinte loop, not sure you face same issue

  • @ravikumarmn2564
    @ravikumarmn2564 10 місяців тому

    2 schemes created in myself?

  • @patrykruryk3532
    @patrykruryk3532 2 роки тому

    Good job man!

  • @chetanbhandari3033
    @chetanbhandari3033 3 роки тому

    Thanks nice explanations

  • @achyutgawade7948
    @achyutgawade7948 3 роки тому

    Great explanation! But the video's sound is very poor, barely able to hear the voice on the laptop.

  • @abhilashbhise2743
    @abhilashbhise2743 3 роки тому

    Thank You So Much

  • @pounkumarj1916
    @pounkumarj1916 Рік тому

    clear cut explanation,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,...............................................

  • @SuperSenthil8
    @SuperSenthil8 2 роки тому

    Seems like running fastly to cover the topics, if you do in slow way it will be easily understandable to all

  • @shivanshutyagi83
    @shivanshutyagi83 2 роки тому

    Helpful

  • @anindyapaul2239
    @anindyapaul2239 3 роки тому

    upgrade ur micrphne.... thats y indian utubers r nt gettng any lights...

  • @thejas6922
    @thejas6922 5 місяців тому

    boooring explanatioon

  • @anonboy863
    @anonboy863 3 роки тому

    Very boring

  • @officialmiracleofdoll
    @officialmiracleofdoll 3 роки тому

    How to update foreign key with new primary key ??? My query is
    "update Card o Set o.customer.userName=:newuserName where o.customer.userName=:userName";

  • @arikarans1302
    @arikarans1302 7 місяців тому

    Recommended