christian wrote:
Please follow the chapter about parent/child relationships in the reference documentation step by step.
I had followed that chapter step by step already, I swear ;)
I found the problem. I had a "BeanUtils.copyProperties" lost in my code to copy the data from the from to the persistent object (I'm using Struts), and a converter that empties the sets (to prevent form objects from reaching the persistence layer when I do a save). The object that I wanted to delete was beign passed to session.delete() with its children set empty, so hibernate couldn't perform the cascade deletion, and then postgresql was complaining about it. I don't need that "BeanUtils.copyProperties" call at all when doing a delete, now it works fine.
Thanks anyway.