Hibernate framework

Hibernate framework is an object-relational mapping library for the Java language. It is an open source persistent framework started by Gavin King in 2001. It provides the facility to map the java classes to relational database tables and Java data types to SQL data types.
Note: Hibernate framework acts as an intermediate layer between java objects and relational database.

Diagram:


 

Advantages of Hibernate framework:

  1. Hibernate framework is an open source framework.
  2. Hibernate framework is a high performance framework because of its internal cache.
  3. It maps java classes to database tables using XML files and if any change is made to the database than we have to change these XML files only.
  4. It provides a database independent query language HQL (Hibernate Query Language).
  5. It provides the facility to create tables from your java application.
  6. No application server is required.

 
Next Topic: Hibernate architecture.
Previous Topic: ORM overview.