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: Casacade Purpose
PostPosted: Tue Oct 30, 2007 3:50 pm 
Newbie

Joined: Mon Jul 16, 2007 9:35 am
Posts: 17
Hi all,

Scanario 1:
I am using casacade="all-delete-orphan" for my BAG collection in my HBM files.

Assume I do have class A and it is been related to class B and class C.
even though, I am using casacade="all-delete-orphan" , if i try to save or delete a particular entity, i cannot save or delete directly class A

I am explaining a DELETE Scenario.

eg delete(objA);
it excepts its child to deleted first say delete(objB) and delete(objC).I am been pushed to do like this.


Why it is so? what does actually casacade="all-delete-orphan" this means in the HBM file.

Scenario 2:

If i remove casacade="all-delete-orphan" in my HBM files. I am able to delete directly my parent class.

For eg : delete(objA).

It does not push me to delete objB or objC which is related to class A.


Kindly put me your thoughts, about what casacade="all-delete-orphan" does really mean.

Thanks for your efforts,
With smile
Sudhagar.S


Top
 Profile  
 
 Post subject:
PostPosted: Fri Nov 02, 2007 12:33 pm 
Senior
Senior

Joined: Thu Feb 09, 2006 1:30 pm
Posts: 172
If I'm reading what you are saying correctly things are not working as they should. Please provide more detailed examples, with actual classes and mapping files if possible. Maybe through additional information we can provide a solution that works for you.


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.