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.  [ 3 posts ] 
Author Message
 Post subject: One shot delete
PostPosted: Thu Dec 21, 2006 12:04 pm 
Beginner
Beginner

Joined: Wed May 03, 2006 5:10 am
Posts: 32
Location: Monopoli - Italy
Hi,

I have a one-to-many relation between two classes: Master and MasterDetail.

A particular Master object contains a collection of 100 MasterDetails:
when I delete the Master with session.Delete(master) method I observe that NHibernate executes 101 SQL DELETE statements, one for each MasterDetail and one to delete itself.

Is it possible to execute only 2 operations, one to delete the 100 MasterDetails and one for the Master?

Thanks
Antonella

Hibernate version: 1.0.3

Name and version of the database you are using:SQL Server 2000


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 24, 2008 10:53 am 
Newbie

Joined: Mon Jul 14, 2008 5:17 am
Posts: 3
i have this problem too. But i can't find any solution.


Top
 Profile  
 
 Post subject: Re: One shot delete
PostPosted: Thu Feb 18, 2010 10:22 am 
Newbie

Joined: Thu Jan 28, 2010 10:49 am
Posts: 5
hi,
im having the same issue here, anyone have found the solution? may i know how did your solved the problem.

appreciate any comments.

regards


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.