What is the advantage of hibernate over JDBC?

HI,

What is the advantage of hibernate over JDBC?

thanks,

View Answers

May 1, 2013 at 4:00 PM

Hi,

The Hibernate is an open source persistence programming technology of Java language. Hibernate offers ORM library and high performance query services. Hibernate plays as bridge between database and Applications.

JDBC is an abbreviation of Java Database Connectivity. Java Database connectivity(JDBC) allows user to connecti with database to handling the data. JDBC offers methods for querying and updating data by using the SQL.

In JDBC you need to write code for mapping data of your object model and corresponding database. The benefits of using Hibernate you need not require to write code for mapping data of your object model. In hibernate you find the feature of Object/Relational mapping.

Hibernete suppots various queryinhg concept of native SQL, Hibernate query language(HQL) also object orient concepts of criteria. Where as Java Database connectivity(JDBC) only support Native SQL.









Related Tutorials/Questions & Answers:
Advertisements