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.  [ 2 posts ] 
Author Message
 Post subject: Rules about cascade
PostPosted: Wed Oct 29, 2003 7:35 pm 
Senior
Senior

Joined: Tue Oct 21, 2003 8:15 am
Posts: 186
In an object graph, what kind of precedence and depth rules apply to cascades?

That is:

1) Does cascade=x mean that it cascades the entire object graph, or only to the next level, unless the next level also contains cascade=x ?

2) If one set has cascade=x and the next cascade=y, which applies? x or y? Does "all" have precedence? What are the rules?

Thanks.


Top
 Profile  
 
 Post subject: specified level
PostPosted: Wed Oct 29, 2003 10:39 pm 
Senior
Senior

Joined: Sun Aug 31, 2003 3:14 pm
Posts: 151
Location: Earth (at the moment)
Quote:
1) Does cascade=x mean that it cascades the entire object graph, or only to the next level, unless the next level also contains cascade=x ?


Only to the next level, then that level's cascade takes over so to speak.

Quote:
2) If one set has cascade=x and the next cascade=y, which applies? x or y? Does "all" have precedence? What are the rules?


The set with 'x' will follow 'x', the set with 'y' will follow 'y'. Cascade all means that both inserts and updates are cascaded. Cascade all-delete-orphan means that orphaned children will be deleted when their parent is deleted.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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.