-->
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: Batch insert/update
PostPosted: Tue Feb 06, 2007 6:33 am 
Newbie

Joined: Mon Jan 08, 2007 7:57 am
Posts: 6
Hi

Is there a way to process a batch job in hibernate?
like when deleting all objects of type X, I would like nhibernate to do it in a single query. is it possible?

Avi


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 06, 2007 7:16 am 
Contributor
Contributor

Joined: Sat Sep 24, 2005 11:25 am
Posts: 198
Not in the way you mean, no.
There is the way to batch several commands into a single db roundtrip, but that isn't what you are asking.

But there isn't a way to do something like:

session.Execute("delete from Post");


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.