-->
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.  [ 3 posts ] 
Author Message
 Post subject: L'enigme du many to many cascade
PostPosted: Fri Jun 27, 2008 11:31 am 
Newbie

Joined: Tue Jun 24, 2008 6:42 am
Posts: 19
Bonjour, bonjour

voila j'ai un Child avec deux parents, et si je supprime un seul parent et bien le Child se fait supprimer aussi, pourtant il lui reste un parent, donc il n'est pas orphelin!! il ne devrait donc pas se faire supprimer !!

voila mon mapping :

Code:
<set name="friends" sort="unsorted" table="lien" lazy="true" cascade="all,delete-orphan">
         <key column="pere"/>
         <many-to-many class="test.Node" column="enfants"/>
</set>


Ne me dites pas que Sun n'a pas pensé à cette éventualité dans la suppression en cascade ???

bye[/code]


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jun 28, 2008 5:15 pm 
Proxool Developer
Proxool Developer

Joined: Tue Aug 26, 2003 10:42 am
Posts: 373
Location: Belgium
Juste une petite remarque - qui n'apporte aucune solution à ta question - mais Hibernate n'est pas de Sun comme tu sembles le penser, mais bien l'oeuvre de Gavin King. Aujourd'hui Hibernate fait partie de l'offre de JBoss...


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jun 30, 2008 4:08 am 
Newbie

Joined: Tue Jun 24, 2008 6:42 am
Posts: 19
arf, effectivement...


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

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.