wood burning stoves*
The moose likes Object Relational Mapping and the fly likes Batch Update in Hibernate Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Batch Update in Hibernate" Watch "Batch Update in Hibernate" New topic

Batch Update in Hibernate

Pankaj Patro
Ranch Hand

Joined: Apr 20, 2005
Posts: 35
Is Hibaernate supports batch Update?
Can I simultaneously delete and insert records?

Advance ThankQ

Thanks & Regards,
Pankaj Patro
Paul Sturrock

Joined: Apr 14, 2004
Posts: 10336

Is Hibaernate supports batch Update?

Yes. Flush the session only when all your updates have been done.

Can I simultaneously delete and insert records?

Within the scope of one session, yes.
[ June 15, 2005: Message edited by: Paul Sturrock ]

JavaRanch FAQ HowToAskQuestionsOnJavaRanch
I agree. Here's the link: http://aspose.com/file-tools
subject: Batch Update in Hibernate
Similar Threads
Batch Update
Enabling batch updates in hibernate
batch processing - Hibernate Vs JDBC ?
Best way to insert 10000 rows in JDBC
5 letter scrabble