Introduction to Hibernate
Well, I am Gonna Start a New Series of Articles on Hibernate. This is the first article of Hibernate series and this is an Introductory article which talks about Hibernate Framework.
So Here We go:
If You are working with Object-Oriented Programming and relational databases, you will surely have noticed that these are two different paradigms. The relational models deals with relations, tuples, and sets – It is very mathematical by nature. The Object-oriented paradigm however deals with objects, their attribute s and associations to each other. As soon as you want to make objects persistent using a relational database you will notice: There is a rift between these two paradigms, the so-called object-relational gap. A Object-Relational Mapper (ORM) will help you bridge that gap.
Hibernate not only takes care of the mapping from Java classes to database tables (and from Java data types to SQL data types), but also provides data query and retrieval facilities and can significantly reduce development time; otherwise, spent with manual data handling in SQL and JDBC. It manages the database and the mapping between the database and the objects.
The Major Goal of the Hibernate is, to relieve the developer from the 95 percent of common data persistence related programming tasks. Hibernate adapts to your development process, no matter if you start with a design from scratch to work with a legacy database.
Hibernate generates SQL for you, relieves you from manual result set handling and object conversion, and keeps your application portable to all SQL databases. Hibernate allows you to store, fetch, update and delete any kind of objects. Hibernate lets you develop persistent classes following common Java idiom-including association, inheritance, polymorphism, composition, and the Java Collections Framework.
The Hibernate Query language, designed as a minimal object-oriented extension to SQL, provides an elegant bridge between the object and relational worlds.
Thats All for Introduction of Hibernate. See you in Next Article On Key Features Of Hibernate.