Hello,
I want to make persistent object, that became transitive after delete, persistent again, but having error, while "persisting" its child - on saveOrUpdate i've got UPDATE query on unexisten row in child table. Seems like hibernate "thinks" that child is persistent, only two things that make it work- 1) if i use merge, instead of saveOrUpdate or 2) set key at child object to null/0. But i want to make this code working with save/saveOrUpdate.
here's my test source:
http://pastebin.com/FdHYSRMt here mappings:
http://pastebin.com/K8gFzQ4K here query log with error:
http://pastebin.com/t9vRHf1X thanks for any help.