| Still exists for 5.2.17.Final This is more like a bug: hibernate considers null collection not equal empty collection on merge operation. Persist operation returns entity and keeps null for collection(I think bug is here), by contrast find returns entity with empty bag. Such inconsistense leads to this error: merge operation loads entity with empty bag and compare it with new entity containing null. As a result empty bag becomes orphan. |