When sides of bidirectional relationship disagree, a state of the owning side (i.e. A side without mappedBy ) is persisted to the database. So, you need to modify both sides consitently.
When sides of bidirectional relationship disagree, a state of the owning side (i.e. A side without mappedBy) is persisted to the database. So, you need to modify both sides consitently: for (Part p: corolla.getParts()) { p.
SetCar(null); } corolla.getParts().clear().
The bit about the owning side being persisted is what I needed. Thanks very much for this! – mdtsandman Jun 27 at 14:10.
It looks fine, however while removing an entity from your database you should be using: EntityManager.remove.
I don't think this is what I was looking for: I don't want to remove the parts from the DB, but rather remove their association with the particular car. Thanks, though :) – mdtsandman Jun 27 at 14:02.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.