Adds

Why Should You Use Hibernate?

Reason 1 - Performance

Hibernate can save your guts, and it can let you achieve some performance gains that you could hardly ever acheive by hand-coding.

Hibernate generates very efficient queries very consistently. However, that is only the begining of the performance story. Hibernate employs very agressive, and very intelligent first and second level caching strategy. This is a major factor in acheiving the high scalability.
Hibernate spares you a unnecessary database calls. So all these lookup tables, and rarely changing data can get cached, and much more.
It allows you to cache how much you want, and it can be very intelligent with write-backs. Furthermore, it integrates well with the major open source (OSCache, EHCache, JBossCache, ...) and commercial caching products such as Tangosol giving you an opportunity to use even more sophisticated features that come with these products.

Reason 2 - Effective Cross-Database Portability

Hibernates portability accross the relational databases is amazing.
It is literally one configuration paramter change. You only have to change the database dialect. This property was especially helpful in my previous company because we used to deploy to wide range of databases since had bunch of extra licenses, so we never knew if the DBA manager would allocate us a Sybase or DB2. So we used to develop on MySQL, and then deploy on whatever. The only change was the change of the dialect - one line change in the configuration file.
That was it!

Reason 3 - Developers' Productivity

I have to admit that Hibernate ,like other sophisticated frameworks, has a steep, but short learning curve, but once you got it - you got it. It becomes a breeze to work with, and it feels like a magic.
If you use it with Spring framework, and Open Session in a View filter you do not even know that you are using it.
You keep working with the objects, and Hibernate does its work for you - persists the changes to the database.

If you are not familiar with the Hibernate I would encourage you to go to Hibernate.org and check the documentation - specially the quickstart, and do few examples. More you get to know about it - more you'll love it.

My only issue with the Hibernate is their support forum - these guys are arrogant! I guess they feel they have right to be.

by: http://blogs.ittoolbox.com/

0 komentar: