This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
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" >