-->
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: saveOrUpdate on a hierarchy/set without cascade
PostPosted: Thu Mar 10, 2005 7:25 am 
Beginner
Beginner

Joined: Tue Jan 11, 2005 5:50 am
Posts: 43
Location: Zurich (Suisse)
Hi

I made a mapping where a has childs b and c, each as a set. My problem is that if I update a, hibernate tries to update b and c too, it cascades. I used cascade="none" on the sets and default-cascade="none" all together, but there is no difference.

Am I missing something here, why is this not possible, to not cascade?

Any help appreciated.
Thanks

Tarik


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 10, 2005 11:45 am 
Beginner
Beginner

Joined: Tue Jan 11, 2005 5:50 am
Posts: 43
Location: Zurich (Suisse)
Any hints, ideas, comments?

Really appreciate it.

Tarik


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 11, 2005 10:52 am 
Beginner
Beginner

Joined: Tue Jan 11, 2005 5:50 am
Posts: 43
Location: Zurich (Suisse)
Well it seems to work if I use inverse="true" on the childs set declaration.

Odd to me, think I know what I do this weekend :-)

Regards
Tarik


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.