Why to choose Hibernate over jdbc?

Hibernate is one of the most popular ORM tools used by the developer to maintain
DAO(Data Access Object) layer.Hibernate takes care of mapping Java Entity classes to database table and Java data types to  SQL datatype.It provided ease to the developer in writing the database queries using  java objects which are independent of the database.

Major benefits of using hibernate framework

1- It reduces the effort and time of developer in dealing with database table using SQL and JDBC .
2- Hibernate takes care of resource management by doing transaction management,connection pooling ,connection opening and closing etc.
3- Hibernate provides freedom to migrate from one database to another database without changing the code,
4- Hibernate support Hibernate Query Language(HQL).HQL is completely object oriented just it follows OOPs properties such as inheritance,collection,association.SQL queries are also supported by Hibernate.
5- Hibernate provides a certain inbuilt function to perform CRUD operations.
6- Hibernate can be used to create to database tables by defining the table mapping in java classes using annotations or XMLs
7- Hibernate supports caching just reduces the number of hits to the database.

Give you suggestion in comments.If you like the post Share with your friends on social network.


Why to choose Hibernate over jdbc? Why to choose Hibernate over jdbc? Reviewed by JavaInstance on 11:22:00 AM Rating: 5

No comments:

Powered by Blogger.