This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
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 Building Microservices this week in the Design 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’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: Batch Update in Hibernate
It's not a secret anymore!