At present my business is using “IBATIS” and pure “SQL”s as database persistence mechanism. I like SQL query extremely substantially, especially in tuning, but i just do not like code all SQL question in Java application, it is uncomplicated strike typo error and what a silly and tedious task? I resolved to propose a O/R mapping system (Hibernate )as our new java database persistence system
Why we need O/R mapping?
1) Productiveness – It helps developer get rid of writing complicated and cumbersome SQL statement, developer no far more need to have of JDBC APIs for result set or information handling. It will make developer far more focus on the organization logic.
2) Maintainability – It assists decrease traces of code, it makes method additional comprehensible. It emphasizes small business logic rather than persistence do the job (SQLs). Much more important, a method with fewer code is less difficult to refactor.
3) Portability – It abstracts our application absent from the fundamental SQL databases and sql dialect. Switching to other SQL database involves number of adjustments in Hibernate configuration file (Write once / run-any where)
In this article are some Well-liked Open Resource Persistence Frameworks in Java
3) Oracle Prime Website link
5) Open up JPA
I do not want to evaluate each O/R or non O/R persistence system individually, it may possibly invested far more than one month involve into exploration and hand-on exercise. Base on my particular humble feeling, I will choose Hibernate as the finest O/R mapping persistence mechanism in excess of the other folks instruments.
Explanation of picking Hibernate
1) It delivers all above O/R rewards. (Efficiency, Maintainability, Portability).
2) It is free of charge and open resource – Expense Powerful
3) The finding out curve is small. It is absolutely object orientated strategy, it will shorted our mastering curve.
4) “Hibernate resources” furnished by group helps developer make or develop software very quick and simple. (Eclipse’s Plugin & Code era applications)
5) It is well-known, when we goes improper with it, we can effortlessly uncover the response from Google. In addition, there are many publications, communities and community forums to guidance it.
6) Java Market place require It, need of Hibernate’s developer is raising and absolutely far more then the some others resources. This doing work encounter absolutely include rewards on our resume for the next leap.