This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

batch processing - Hibernate Vs JDBC ?

 
kri shan
Ranch Hand
Posts: 1462
  • 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
GenRocket Founder
Ranch Hand
Posts: 15302
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