-->
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: Delete order null constraint
PostPosted: Fri Aug 19, 2005 3:51 pm 
Regular
Regular

Joined: Thu May 12, 2005 10:12 am
Posts: 71
Location: Buenos Aires, Argentina
Is there a way to enforce delete order. I have an evolved application that applies many controls to a set of recieved files. Late in the development I have a Use Case that states that I should delete everything the user has done. This is "easy"...just delete the parent object. But as it turns out this implies deleting many object and complex hierrarchies. In one case I found NH trying to delete thing that conflicts with a foreign key constraint.

Is there a way to control the delete order, or I'm better off with a Stored procedure for this?? Maybe I'm missing something, like a not-null or something to tell nhibernate how to follow the cascade order and which entities deletes first.

Thanks!


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.