-->
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: objects relations
PostPosted: Wed Aug 04, 2004 7:23 am 
Newbie

Joined: Wed Aug 04, 2004 7:17 am
Posts: 3
assume I have persistent class A that has association to persistent class B. Now assume that I want to delete class A instance corresponding data from storage but with out deleting class B data that is accociated with it and assume that the configuration file states that cacade value is "all", is there a dynamic way to say I want only class A data to be removed but with out removing class B data?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Aug 04, 2004 7:52 am 
Beginner
Beginner

Joined: Wed Jun 23, 2004 12:37 pm
Posts: 20
Is it a 1 to 1 or a 1 to many ?

I have 1 to many collections that don't delete the child record when the child is removed adn cascade is set to 'all'.

I also have 1 to many collections that do delete the child records when the child is removed adn cascade is set to 'all-delete-orphan'.

Cheers,

Nick


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.