Hibernate Tip: How to Map a Bidirectional Many-to-One Association

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

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

  • @ΚώσταςΔημητριάδης-μ9φ

    Thank you! Very helpful!

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

    1:10 why do you call "private Book book" class variable an "Entity attribute"?

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

    Hello.
    I have 2 questions:
    - related to method public void addReview(Review review) - should be also syncronized?
    - entity object is singleton? - if there are 2 threads that want to load the same object from db using findById(), they will share the same object?
    Many thanks.

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

    this is good. But I getting a problem when I try to get reviews from the book. ps. I am using the EntityMaanager bean by directly injecting it in springboot.

  • @kayeshparvez
    @kayeshparvez 6 лет назад

    Nice video
    Need full source codes of the classes

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

    You need @JasonBackReference to avoid looping while serialisation

  • @АльфредГордан
    @АльфредГордан 4 года назад

    thanks

  • @adrienmbiandji8282
    @adrienmbiandji8282 5 лет назад

    This je Manytoone-onetomany association not manytoone-manytoone