Introduction to Hibernate Framework

This tutorial is an Introduction to Hibernate Framework: First of you should learn the What is Hibernate Framework? You should understand its features and benefits.

Introduction to Hibernate Framework

Hibernate Tutorial: an introduction to Hibernate Framework, its features and benefits of using Hibernate framework

This article is introduces you with the Hibernate framework. You will learn the features and advantages of using Hibernate in your projects.

What is Hibernate Framework?

Hibernate is Java based open source project for persisting the Java objects (POJO's) into persistence store (e.g. database). It is one of the most used ORM tool in the software industry. ORM stands for Object Relational Mapping and it provides the API for saving the persistence objects to the data store. It also provides the API for performing insert, update, delete and query operations. Here there is not need to write the JDBC SQL statement and queries Hibernate Framework (ORM tool) automatically generates the necessary SQL statements and execute against database in runtime. It saves a lot of development time and increases the developers efficiency working on the project.

As mentioned above Hibernate Framework is free and open source framework which is distributed under the GNU Lesser General Public License. So, you can use Hibernate framework for free as well commercial application without paying any fee.

Hibernate framework supports OOP's principal and provides support for association, inheritance, polymorphism, composition and the collection framework. Developers can use all these principals of Java while working with the Hibernate framework.

Following diagram shows show you can use the Hibernate framework in your application:

Working of Hibernate ORM

From your Java application will call the Hibernate API and then Hibernate will perform the persistence acvities. 

Features of Hibernate Framework:

Here is the important features and benefits of Hibernate:

  • Transparent persistence:  Hibernate framework automatically generates the SQL queries on the fly and using JDBC it saves the data into database. It also handles the process of managing the JDBC connection and exceptions.
  • Annotations/XML based mapping meta data: Developers can use the Java annotations or XML configuration for specifying the Object-relational mapping information to Hibernate ORM.
  • Persistence API: Provides the API for easy persistence and query of the objects.
  • Increase developer productivity: Hibernate reduces the development time of the data access layer of the application.
  • Database independent: Hibernate supports all the major relational databases including:
    * MySQL
    * Oracle
    * PostgreSQL
    * FrontBase
    * DB2/NT
    * Microsoft SQL Server Database
    * Sybase SQL Server
    * Informix Dynamic Server
    * HSQL Database Engine
  • Caching Support: Hibernate provides support primary and secondary persistence caching mechanisms.


More tutorials about Hibernate Introduction