File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 REST with Spring (video course) this week in the Spring 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: 1404
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: 15302

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

GenRocket - Experts at Building Test Data
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
wood burning stoves
subject: batch processing - Hibernate Vs JDBC ?
It's not a secret anymore!