-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Can't get all-delete-orphan to work
PostPosted: Thu Jul 15, 2004 7:56 pm 
Beginner
Beginner

Joined: Sun Feb 08, 2004 4:09 pm
Posts: 46
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.