At this time my enterprise is working with “IBATIS” and pure “SQL”s as database persistence system. I like SQL query extremely significantly, particularly in tuning, but i just do not like code all SQL query in Java application, it really is simple strike typo error and what a stupid and cumbersome occupation? I made a decision to suggest a O/R mapping mechanism (Hibernate )as our new java databases persistence system
Why we need to have O/R mapping?
1) Productivity – It can help developer get rid of producing sophisticated and laborous SQL statement, developer no much more have to have of JDBC APIs for consequence set or data managing. It will make developer much more concentrate on the business enterprise logic.
2) Maintainability – It will help reduce traces of code, it would make method a lot more easy to understand. It emphasizes business logic fairly than persistence function (SQLs). Far more significant, a process with a lot less code is simpler to refactor.
3) Portability – It abstracts our application absent from the fundamental SQL database and sql dialect. Switching to other SQL databases demands number of variations in Hibernate configuration file (Publish when / operate-any place)
Below are some Common Open up Resource Persistence Frameworks in Java
3) Oracle Top Website link
5) Open up JPA
I do not want to evaluate each individual O/R or non O/R persistence system individually, it could expended more than a person month consist of into research and hand-on exercise. Base on my personal humble belief, I will choose Hibernate as the most effective O/R mapping persistence system around the others applications.
Motive of picking Hibernate
1) It supplies all earlier mentioned O/R advantages. (Productiveness, Maintainability, Portability).
2) It is absolutely free and open up source – Value Successful
3) The discovering curve is small. It is completely item orientated notion, it will shorted our studying curve.
4) “Hibernate instruments” provided by local community allows developer crank out or acquire software quite fast and quick. (Eclipse’s Plugin & Code technology instruments)
5) It is well-known, when we goes wrong with it, we can quickly discover the respond to from Google. In addition, there are several publications, communities and boards to guidance it.
6) Java Current market have to have It, demand of Hibernate’s developer is escalating and unquestionably far more then the some others resources. This operating expertise absolutely insert rewards on our resume for the subsequent bounce.