Monday, June 8, 2009

What is Hibernate

Hibernate is an Object Relational Mapping solution and also supports to persistence management. If you are new to Object Oriented Programming and Hibernate, the above explanation will not give much sense to you. So let me explain it further.

Let’s say we have object called “Hotel” (Hotel.class) in our object oriented program and we need to persist (Save) it in the database where we have table called “Hotel”. In traditional way you need to read properties of object (Hotel) and create SQL statement and execute it to save in database.

But you don’t need to do this manual mapping when you use Hibernate. Hibernate is take care of this one to one mapping for you and persist it in database.

I’ll discuss this further in my later posts and feel free to enter any comments if you have on this post. So I can improve this for you.

No comments:

Post a Comment