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.
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.
1:10 why do you call "private Book book" class variable an "Entity attribute"?
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.
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.
Thank you! Very helpful!
Thanks
Nice video
Need full source codes of the classes
You need @JasonBackReference to avoid looping while serialisation
thanks
This je Manytoone-onetomany association not manytoone-manytoone