-->
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: Detached objects in collections after cascade delete
PostPosted: Wed Feb 25, 2009 2:03 pm 
Newbie

Joined: Wed Feb 25, 2009 10:27 am
Posts: 1
NHibernate Version 1.2.1

NHibernate fetches collections by associations, but how to teach it to delete detached objects from parent collections? Sometimes I had an ObjectDeletedException: deleted object would be re-saved by cascade

I don't want to remove detached object manually, because hierarchy of table may be complex: TableA -> TableB -> TableC and TableD -> TableC and I delete object from TableB. Detached objects from TableC by cascade delete will be at TableD collection. I want to have knowledge about table structure only in mapping files, not in source code.

Does NHibernate have such setting?


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.