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

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

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

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

    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.

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

    Thank you! Very helpful!

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

    Nice video
    Need full source codes of the classes

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

    You need @JasonBackReference to avoid looping while serialisation

  • @АльфредГордан
    @АльфредГордан 5 лет назад

    thanks

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

    This je Manytoone-onetomany association not manytoone-manytoone