Remove child entity from collection: Best practice? [message #964893] |
Tue, 30 October 2012 17:49  |
Eclipse User |
|
|
|
Hi,
I have following entity classes:
Tectonic and Level have each a list of TectonicsLevels which references both of them. A fourth entity class TectonicsLevelLink references TectonicsLevel one time as parent and one time as child. TectonicsLevel in turn has two collections, a parent and a child collection of TectonicsLevelLink.
My question is (as I tried a lot of configurations without success): What is best practice removing a TectonicsLevel? In OnToMany relationships I have cascadeType.ALL set and orphanRemoval="true". I always get an OptimisticLockException when I remove a TectonicsLevel.
Maybe someone can give me a hint, at least where I find some usefull information about that?
Thank you!
|
|
|
|
Powered by
FUDForum. Page generated in 0.05343 seconds