-->
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: delete object would be resaved
PostPosted: Thu Jun 15, 2006 10:21 am 
Newbie

Joined: Sat Dec 03, 2005 5:35 am
Posts: 11
Bonjour à tous !

J'utilise un objet A1 qui a comme enfant un objet B
Je supprime l'objet A1 et je réaffecte B à A2.

La dépendance entre A & B est du type "cascade-all".

L'erreur que me sort hibernate et qui est logique : l'objet B est marqué comme supprimé alors qu'il va être resauvé par A2.

Ma question : comment (quel attribut, mapping, etc...) faire comprendre à hibernate que cette situation est normale et qu'il doit simplement sauver l'objet ?

Merci !

Simon


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.