-->
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
PostPosted: Sat Oct 25, 2003 10:41 am 
Senior
Senior

Joined: Tue Oct 21, 2003 8:15 am
Posts: 186
Is there such as thing as cascade ="save-delete"? I want creations/deletions to cascade, but not updates (due to program logic in a couple of places)

I have workarounds, so no sweat.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Oct 25, 2003 4:01 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
Interestingly enough, the answer is probably "no", though its not immediately obvious.

For example, I would really like to have a "save-lock", but the trouble with that is that allowing both "save-lock" and "save-update" would open up the possibility that the behaviour changes according to the order in which Hibernate navigates object references. This is VERY bugprone!

Now, "save-delete" is probably not vulnerable to this, but I think what you really want is actuall "save-lock-delete", which is problematic.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Oct 25, 2003 6:42 pm 
Senior
Senior

Joined: Tue Oct 21, 2003 8:15 am
Posts: 186
What I want is save-delete as a combo of cascade="save" and "cascade=delete"

But then again, I'm a Hibernate newbie and don't understand all the implications ;-)


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.