-->
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.  [ 1 post ] 
Author Message
 Post subject: Cascade on save() and delete() but not update?
PostPosted: Wed Dec 22, 2004 11:34 am 
Beginner
Beginner

Joined: Tue Oct 19, 2004 11:04 am
Posts: 22
I have a couple of use cases with my domain model that require the ability to save a parent object and cascade the save to child objects and delete a parent object and cascade delete all child objects. However, I have another use case the dictates updating just the parent object and only the parent object, leaving the child objects as they are.

What would be the best way to handle these three cases in terms of the cascade attribute on the parent-child relationships and what would that mean for the code?

Thanks!


Hibernate version:2.1.7


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

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.