I'm new to hibernate so I don't understand some basic things. I have Entity A and B. And it's a one to many relationship. So A can have multiple B's. Below is code to save when adding a new B to A. That's working.
A a= this.aService.getAById(AID);
b.setA(a);
a.getBSet().add(b);
this.aService.saveA(a);
But how can I edit one B entity? Do I first have to remove the B entity that I want to edit from the Set? Really sorry if it's an obvious question. But I already searched with Google and the only examples I can find is when you make new entities and not edit.