Hi All, so i have following Problem with a delete Action in my Software.
There is a Parent which can have some childs, because there are some fields with OneToMany relations. If the parent has no child in any of the relations, the deletion of the parent works. But if there any relation the EntityManager.remove(parent) will not produce a exception and i saw in the sql debug there was no delete Statement.
I use Hibernate 4.1.8.Final and Spring 3.1.3.
I don't want to remove the childs automatized, so cascade is not a option for me. Do you have any suggestion how i can configure Hibernate to work like expected in this scenario ?
Cheers, MacMail
|