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

Поделиться
HTML-код
  • Опубликовано: 27 ноя 2024

Комментарии • 43

  • @iuriirudov
    @iuriirudov 2 года назад +4

    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 !

  • @simondif1470
    @simondif1470 3 года назад +2

    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).

  • @magadiflo-dev
    @magadiflo-dev 2 года назад

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

  • @gulbalasalamov1367
    @gulbalasalamov1367 2 года назад

    Many thanks!
    All type of relations worked for me

  • @antorodrigo2084
    @antorodrigo2084 3 года назад +2

    Really useful to understand the entity annotations. Thanks!

  • @repakanagesh7615
    @repakanagesh7615 3 года назад +1

    Great! thanks for covering all in single video

  • @raheemsk3552
    @raheemsk3552 3 года назад +3

    Nice explanation bro.... thank you

  • @Trazynn
    @Trazynn 3 года назад

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

  • @atiqurrahman7260
    @atiqurrahman7260 3 года назад

    finally some decent explanation.
    Thanks

  • @nileshshinde6718
    @nileshshinde6718 2 года назад

    Great explanation... Thank you

  • @patrykruryk3532
    @patrykruryk3532 2 года назад

    Good job man!

  • @bisamallaajaykumar4255
    @bisamallaajaykumar4255 Год назад

    Thanks a lot very clear :)

  • @dllm3tommy741
    @dllm3tommy741 Год назад

    Thanks for the video

  • @rahuldeulgaonkar
    @rahuldeulgaonkar 3 года назад

    Thank you. Very nice explanation.

  • @younesszgr3162
    @younesszgr3162 10 месяцев назад

    bro , you rock !

  • @priyankjoshi3018
    @priyankjoshi3018 3 года назад

    Nice and very well explained.

  • @christopherami8142
    @christopherami8142 3 года назад

    Thanks mate ! i need this video

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

  • @singarajusreedhar
    @singarajusreedhar 5 месяцев назад

    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

  • @pasupulaphaneesh4049
    @pasupulaphaneesh4049 2 года назад +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.

  • @chetanbhandari3033
    @chetanbhandari3033 3 года назад

    Thanks nice explanations

  • @shivanshutyagi83
    @shivanshutyagi83 2 года назад

    Helpful

  • @abhilashbhise2743
    @abhilashbhise2743 3 года назад

    Thank You So Much

  • @ravikumarmn2564
    @ravikumarmn2564 8 месяцев назад

    2 schemes created in myself?

  • @pounkumarj1916
    @pounkumarj1916 Год назад +1

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

  • @achyutgawade7948
    @achyutgawade7948 3 года назад

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

  • @SuperSenthil8
    @SuperSenthil8 2 года назад

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

  • @anindyapaul2239
    @anindyapaul2239 3 года назад

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

  • @thejas6922
    @thejas6922 4 месяца назад

    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 6 месяцев назад

    Recommended