Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

batch processing - Hibernate Vs JDBC ?

 
kri shan
Ranch Hand
Posts: 1473
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Whether batch processing(batch insert/update) thru hibernate is better than JDBC batch processing or vice-versa ?
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Seeing as how Hibernate uses JDBC I don't think you can really compare it, can you?
 
Stevi Deter
Ranch Hand
Posts: 265
Hibernate Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Kri,

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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic