JPA/Hibernate Fundamentals 2023 - Lesson 15 - Entity Graphs

แชร์
ฝัง
  • เผยแพร่เมื่อ 3 ธ.ค. 2024

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

  • @flaca7342
    @flaca7342 10 หลายเดือนก่อน +3

    Thank you Laur, it was a wonderful session. Really you' re a genious and the way you teach is so clear...

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

      Happy you find these helpful.

  • @zaidrj7374
    @zaidrj7374 23 วันที่ผ่านมา

    Thanks

  • @Omar-m1k
    @Omar-m1k 2 หลายเดือนก่อน

    Hi laure , honestly you are the best teacher teaching me spring boot and java as well , can you just do a playlist about asynchronous messaging cuz i want to build a chat application , thank you very well best teacher ☺

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

      Thank you!

  • @hamzaaitoumghar9359
    @hamzaaitoumghar9359 10 หลายเดือนก่อน +1

    why did you change List to Set in association mapping ?

    • @flaca7342
      @flaca7342 10 หลายเดือนก่อน +1

      may be because he don't want duplicates of books or bookshops... just a thought.

    • @laurspilca
      @laurspilca  10 หลายเดือนก่อน +3

      @@flaca7342 Actually an excellent question! Because lists may have duplicates if you try to apply the subgraph it will face problems. I should have told this actually in the event but I forgot. This is to avoid a so called "cannot get simultaneous fetch multiple bags?

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

    Hello sir, i'm building a very simple ecommerce store, and i want to incoporate different payment gateways. should i create a different entity for each ? or what can we do to reduce to the repetition?

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

      Hi. I don't think there a best answer to your question. I think it depends a lot on the solutions you integrate. I don't know how to answer that since it's pretty much a specific case.

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

    Do you have any recommended books for deep dive into hibernate and jpa?

    • @laurspilca
      @laurspilca  5 หลายเดือนก่อน +1

      Hello. To be honest, this is the only book I really liked on the topic:
      Pro JPA 2 in Java EE 8: An In-Depth Guide to Java Persistence APIs
      By Mike Keith, Merrick Schincariol, Massimo Nardone
      A bit old now but I still think it covers well the basics.

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

    Just a request, if you make the ide theme dark, it would easy on eyes for the night viewers 😊

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

      Hello. Thanks. Unfortunately some want it to be white and others black. I need to make a choice and either will make everyone happy.

  • @user.chuyin
    @user.chuyin 9 หลายเดือนก่อน +1

    For the last part (NamedEntityGraph - subgraph), it should be like this?
    @NamedEntityGraphs(
    value = {
    @NamedEntityGraph(
    name="Author.book.graph",
    attributeNodes={@NamedAttributeNode(value = "booksList", subgraph = "booksListSubGraph")},
    subgraphs={@NamedSubgraph(
    name = "booksListSubGraph",
    type=Book.class,
    attributeNodes = {@NamedAttributeNode("bookShopList")})}
    ),
    }
    )