Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

disadvantages of HIbernate

 
ranga shreya
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
disadvantages of HIbernate
I would appreciate your help
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What about asking what are the advantages?

1. No JDBC Code in your code.
2. Seperating SQL statements form your code.
3. Speed of development over JDBC, Entity Beans, etc.
4. No need to run a seperate program after your code is compiled to instrument your code further like JDO.
5. Ability to use Criteria, HQL or SQL to query data. Again the SQL can still be stored in XML as a named query to keep that SQL out of your code.
6. After years of database experience, I have found in every language that I have used I have created a layer to make coding to a database easier, I have created a lot, what I end up creating after years and years is a hibernate like product. Why go and re-invent the wheel when Hibernate has already done it.
7. If you use Hibernate 4.x it is EJB 3 compatible so you don't have to change your code, if you go to EJB 3
8. Very fast. It is even faster than some tools that are built directly by the Database Manufactureres. Yes there are tests out there that prove this, and it is not just my claim.
9. Fully supported by JBoss, either through free forums, or paid support.
10. Well, I am tired of typing, there are many more advantages.

Disadvantages.

1. Learning curve, but this is for any tool or product.


Mark
 
Eric Samson
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey Mark

All the points you mention are valid but also available with any other ORM tool.
So what are the real advantages from the technical point of view (unique benefits not available in JPOX, Toplink, Kodo or XIC) ?

Best Regards, Eric.
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Actually my performance points are geared specifically to Hibernate. I also found Hibernate to be more intuitive to me, as to how I would have designed it. But that doesn't mean that someone else might not think so. Also EJB 3.0 has Hibernate all over it. And Hibernate 4.0 is the only EJB 3 Entity bean implementation out there right now.

Some of my other points are showing advantages of ORM and Hibernate over JDO. I don't think that JDO is a bad technology or isn't good. It just isn't on the side that I want to be on. I want control in my code, and not instrumenting the code after it is compiled. My own personal preference.

Mark
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic