Been trying to solve the following issue for days. I hope anyone can shed some light on this.
My collections (child) are always deleted when i called saveOrUpdateCopy(parent) with/without any modifications.
I open up the session to load the parent and pass it back to the UI layer for some modifications (to both parent and the children.). Somehow after session flush , the parent n children are updated but the children being deleted soon after.
Below are my sample codes:
<!-- MAPPING OF CHILD --> <hibernate-mapping> <class name="Child" table="CHILD" >