-->
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: cascade="all"
PostPosted: Sat Feb 07, 2004 8:21 am 
Beginner
Beginner

Joined: Sun Dec 21, 2003 9:18 pm
Posts: 21
Hi,
I refer to this post http://forum.hibernate.org/viewtopic.php?t=927790&highlight=

It seems that if we are using cascade="save-update" we should specify the unsave value of the child id.

But I also found out that if we use cascade="all" we also need to specify unsaved-value="0"

I post this just for evrybody information.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Feb 07, 2004 12:19 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
'all' means 'save-update' AND 'delete', thus make sence :)

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Sun Feb 08, 2004 3:33 am 
Beginner
Beginner

Joined: Sun Dec 21, 2003 9:18 pm
Posts: 21
ahhh you have shed some light on how the framwork works :)


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.