In a @ oneToMany relation you have different behaviours if you removing a children from the collection.
If you remove a children from a fetched collection, the children wouldnt will not be removed deleted from the database. If your collection is lazy fetched, the children would will be deleted from the database .
See attached Testcase for example. Execute via
{code:java} mvn test {code} |
|