-->
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: Many-to-many && cascading
PostPosted: Mon Aug 01, 2005 9:11 am 
Newbie

Joined: Tue Jan 25, 2005 5:05 pm
Posts: 17
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version: 3.0.5

many-to-many with cascade="all-delete-orphan" also remove child object fron database, but I wanna remove only from association. What I should to do?


Top
 Profile  
 
 Post subject: Re: Many-to-many && cascading
PostPosted: Mon Aug 01, 2005 10:56 am 
Expert
Expert

Joined: Mon Feb 14, 2005 12:32 pm
Posts: 609
Location: Atlanta, GA - USA
Segal wrote:
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version: 3.0.5

many-to-many with cascade="all-delete-orphan" also remove child object fron database, but I wanna remove only from association. What I should to do?


Without seeing your mapping or code, I can't be certain, but since you don't want to delete the child objects, I think you should use cascade="save-update".

_________________
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:
cron
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.