Hibernate is an open source object (relational) mapping library for the Java language, that provides persistent classes and logic without caring how to handle the data.
Hibernate solves Object-Relational impedance mismatch problems by replacing direct persistence-related database accesses with high-level object handling functions.
Advantages of Hibernate
Hibernate is based on object oriented concept like java. so it has better compatibility with java than sql.
Hibernate Applications are database independent. As we have to work on POJO class for interacting with the database so its basically reduce dependency on JDBC.
In Jdbc we have to mannualy handle exception and every time we need to open/cose the connection create/close the statement resultset whatever we have used.
These things are taken care by hibernate.We need not bother about this.
Hibernate uses ORM which is a better approch.
In Jdbc we use .properties file and in hibernate we use .xml file which is a better approach.
In Hibernate we can use collection mapping which are the advantages.
Hibernate has good connection pooling rather than JDBC.
Some Advanced Features of Hibernate are:
Object-oriented query language
Transparent persistence without byte code processing