Does anyone have any ideas as to why on earth this is happening in such a simple case of update?
posted 15 years ago
We suspected it was a mapping issue. All our cascades were set to "all". So we played with the various options. Eventually cascade="delete-orphan" allows the update to complete without any ConcurrentModificationException. The Hibernate book states that this "will delete any persistent entity instance that has been removed (dereferenced) from the association (for example, from a collection)"
The reason why I have orphans is puzzling. Any ideas? Below is the mapping: