-->
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: how to insert list of records using hibernate
PostPosted: Sat Mar 06, 2010 11:17 am 
Newbie

Joined: Sat Mar 06, 2010 11:12 am
Posts: 2
Hi All,

I am very new to hibernate.
Is there any way to insert list of records using hibernate?
At present I am looping through the list and insert the record.Instead can we pass it as a list and execute as a batch.

Please suggest me.

Regards
Saravanan Ramamoorthy


Top
 Profile  
 
 Post subject: Re: how to insert list of records using hibernate
PostPosted: Sat Mar 06, 2010 11:53 am 
Regular
Regular

Joined: Thu May 07, 2009 5:56 am
Posts: 94
Location: Toulouse, France
can you clarify please what do you want to do? (pseudo code would be appreciate)

for batch processing take a look at http://docs.jboss.org/hibernate/stable/ ... batch.html

_________________
everything should be made as simple as possible, but not simpler (AE)


Top
 Profile  
 
 Post subject: Re: how to insert list of records using hibernate
PostPosted: Mon Mar 08, 2010 3:01 am 
Newbie

Joined: Sat Mar 06, 2010 11:12 am
Posts: 2
Hi hallmit,

This is what I really want.
The scenario is that instead of saving one record , I have a list and I need to insert all the records in the list.
This is exactly match the requirement.

Thanks for your input and the reference.

Regards
Saravanan Ramamoorthy


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.