Hi ppl,
I''m using latest hibernate with latest jboss, and here's the mapping:
<set
name="email"
lazy="false"
inverse="true"
cascade="all-delete-orphan"
sort="unsorted"
>
<key
column="oid_pessoa"
>
</key>
<one-to-many
class="br.pucrio.ej.domain.projeto.equipe.EmailBean"
/>
</set>
When this instance is deleted, the delete operation is not cascaded to the childs. And when I set inverse="false", the FKs at the childs (oid_pessoa) are set to null, but they are not deleted either.
What am I missing?
Thanks in advance,
Thiago Souza
|