| Author |
Hibernate for small application
|
Neeraj Vij
Ranch Hand
Joined: Nov 25, 2003
Posts: 315
|
|
Hi, Should we use hibernate for small applications where some files will be uploaded and the records from the file will be saved into the db. one might need to handle around 500-100 records in a single insert/update/select transaction. I feel datasources are good enough to handle this much data. will hibernate be an overhead in this much data ? Thanks, Neeraj.
|
 |
Paul Sturrock
Bartender
Joined: Apr 14, 2004
Posts: 10336
|
|
Up to you really. The size of the application doesn't particularaly matter - I'd personally use Hibernate for most DAO logic these days, unless the application was very basic, or a bulk loader. Its not the volume of data that should be driving your decision, its portability and ease of use. If you go with JDBC, you will have to write all the nuts and bolts to convert from entities to objects yourself. No biggy if there are not many entities. But if you ever have to change to a different database Hibernate is a godsend. Whatever you choose, assuming you use a data access pattern you should be able to swap your persistence technology easilly enough.
|
JavaRanch FAQ HowToAskQuestionsOnJavaRanch
|
 |
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper
Joined: Aug 26, 2006
Posts: 4967
|
|
I love hibernate as much as the next guy, but sometimes a good ETL tool like DataStage is worth the effort, especially if you have a license hanging around. It's always about having the right tool for the job. -Cameron McKenzie
|
Author of Hibernate Made Easy, What is WebSphere???, JSF 2.0 Made Easy and the SCJA Certification Guides
|
 |
arulk pillai
Author
Ranch Hand
Joined: May 31, 2007
Posts: 3190
|
|
|
O/R mapping is well suited for read --> modify --> write centric applications and not suited for write centric applications (i.e. batch processes with large data sets like 5000 rows or more) where data is seldom read. Although this was generally true of many earlier O/R mapping frameworks, most today (including Hibernate) allow for efficient ways of performing large batch style write operations.
|
Java Interview Questions and Answers Blog | Amazon.com profile | Java Interview Books
|
 |
 |
|
|
subject: Hibernate for small application
|
|
|