This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes Object Relational Mapping and the fly likes batch processing - Hibernate  Vs   JDBC ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "batch processing - Hibernate  Vs   JDBC ?" Watch "batch processing - Hibernate  Vs   JDBC ?" New topic

batch processing - Hibernate Vs JDBC ?

kri shan
Ranch Hand

Joined: Apr 08, 2004
Posts: 1365
Whether batch processing(batch insert/update) thru hibernate is better than JDBC batch processing or vice-versa ?
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15286

Seeing as how Hibernate uses JDBC I don't think you can really compare it, can you?

GenRocket - A Test Data Generation Platform
Stevi Deter
Ranch Hand

Joined: Mar 22, 2008
Posts: 265


My experience has been that if you're already using Hibernate, writing your batches via HQL can be very effective. But there's lots of difficult issues, such as the very strict typing of inputs, that can make it painful to debug.

But as Gregg points out, ultimately it gets translated into SQL regardless.

There will always be people who are ahead of the curve, and people who are behind the curve. But knowledge moves the curve. --Bill James
I agree. Here's the link:
subject: batch processing - Hibernate Vs JDBC ?
Similar Threads
Enabling batch updates in hibernate
hibernate vs JDBC
insert 10,00000 records using hibernate with struts2
Spring JDBC Vs Hibernate?