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: Clarification on Syntax
PostPosted: Tue Oct 25, 2005 6:23 am 
Newbie

Joined: Mon Oct 24, 2005 6:43 am
Posts: 6
Hi

I am trying to learn one-to-many and many-to-one navigation.

<set name="jobs" inverse="true" fetch="select" lazy="true" cascade="all, refresh">

My doubt is when we mentioned cascade="all" will cascade all the operations. Can any one tell me cascade="all, refresh" what it will do? Am I missing anything ?

Thanks & Regards
Ramesh Mandaleeka


Top
 Profile  
 
 Post subject: Re: Clarification on Syntax
PostPosted: Tue Oct 25, 2005 8:55 am 
Expert
Expert

Joined: Mon Feb 14, 2005 12:32 pm
Posts: 609
Location: Atlanta, GA - USA
mandaleeka wrote:
Hi

I am trying to learn one-to-many and many-to-one navigation.

<set name="jobs" inverse="true" fetch="select" lazy="true" cascade="all, refresh">

My doubt is when we mentioned cascade="all" will cascade all the operations. Can any one tell me cascade="all, refresh" what it will do? Am I missing anything ?

Thanks & Regards
Ramesh Mandaleeka


The only cascade style that isn't automatically covered by "all" is "delete-orphan" so cascade="all,refresh" is redundant.

_________________
Preston

Please don't forget to give credit if/when you get helpful information.


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.