-->
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.  [ 4 posts ] 
Author Message
 Post subject: bulk insert statements
PostPosted: Tue May 10, 2005 4:56 am 
Newbie

Joined: Sat May 07, 2005 11:49 am
Posts: 4
Hi everyone!!

I have a problem that i have many (about 3) classes which all have sets. When i insert the classes into the database, hibernate generates a single sql statement for every item in the collection.

is there a possibility to generate bulk insert statements where hibernate creates many rows with only one statement??

thanks

greets
markus


Top
 Profile  
 
 Post subject: Re: bulk insert statements
PostPosted: Tue Aug 30, 2005 2:24 am 
Beginner
Beginner

Joined: Tue Jun 21, 2005 8:38 am
Posts: 37
Hibernate 3.0.5 supports bulk update and delete operations. However, it doesn't seem bulk insert is supported.

However, here is a work-around for bulk insert in Hibernate 3.0.5:

http://beanlib.sourceforge.net/Hibernat ... readme.txt
http://beanlib.sourceforge.net/Hibernat ... ert/3.0.5/

It's also submitted as a patch to Hibernate:

http://opensource2.atlassian.com/projec ... se/HHH-915


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 30, 2005 2:46 am 
Expert
Expert

Joined: Mon Jul 04, 2005 5:19 pm
Posts: 720
http://forum.hibernate.org/viewtopic.php?t=946358


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 01, 2005 1:08 am 
Beginner
Beginner

Joined: Tue Jun 21, 2005 8:38 am
Posts: 37
http://hansonchar.blogspot.com/2005/09/ ... e-305.html


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