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

แชร์
ฝัง
  • เผยแพร่เมื่อ 1 ม.ค. 2021
  • You will learn Spring Data JPA Entity map unidirectional and bidirectional association mappings.
    Unidirectional One-to-One Association
    Bidirectional One-to-One Association
    Unidirectional One-to-Many Association
    Unidirectional Many-to-One Association
    Bidirectional Many-to-One Association
    Unidirectional Many-to-Many Association
    Bidirectional Many-to-Many Association
    GitHub URL: github.com/shameed1910/spring...
    My Top Playlists:
    Spring Boot with Angular : • Spring Boot + Angular
    Spring Boot with Docker & Docker Compose : • Spring Boot Docker & D...
    Spring Boot with Kubernetes : • Spring Boot Docker Kub...
    Spring Boot with AWS : • Spring Boot + AWS
    Spring Boot with Azure : • Spring Boot Azure
    Spring Data with Redis : • Spring Data with Redis
    Spring Boot with Apache Kafka : • Apache kafka
    Spring Boot with Resilience4J : • SpringBoot Resilience4j
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 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.

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

    Great! thanks for covering all in single video

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

    Really useful to understand the entity annotations. Thanks!

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

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

    finally some decent explanation.
    Thanks

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

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

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

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

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

    Many thanks!
    All type of relations worked for me

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

    Thanks mate ! i need this video

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

    Thank you. Very nice explanation.

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

    Nice explanation bro.... thank you

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

    Nice explanation...and thank you so much

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

    Good job man!

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

    Nice and very well explained.

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

    Thanks a lot very clear :)

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

    Great explanation... Thank you

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

    Thank You So Much

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

    Thanks nice explanations

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

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

    • @technotowntechie9732
      @technotowntechie9732  2 ปีที่แล้ว +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 ปีที่แล้ว

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

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

    bro , you rock !

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

    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";

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

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

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

    Thanks for the video

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

    Helpful

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

    2 schemes created in myself?

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

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

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

    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

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

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

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

      Sorry about that Achyut.

    • @arunkumar-ci8nb
      @arunkumar-ci8nb 2 ปีที่แล้ว

      Yes vidio content is great ..but please improve the sounding....cheers✌

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

  • @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 5 วันที่ผ่านมา

    boooring explanatioon

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

    Very boring

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

    Recommended