aspose file tools*
The moose likes Object Relational Mapping and the fly likes Hibernate - Newbie Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Hibernate - Newbie" Watch "Hibernate - Newbie" New topic
Author

Hibernate - Newbie

Mathew Sam
Ranch Hand

Joined: Dec 19, 2001
Posts: 124
Hi ,

Could you please explain, What is Hiberante for a newbie?


Regards,
Sam
Dave Salter
Ranch Hand

Joined: Jul 20, 2005
Posts: 293

Hibernate is a library that allows you to map your objects to a database so that you can store and retrieve your objects to/from a database without having to get involved in JDBC.

For each Java object you wish to persist, you specify the database mapping in an XML file.
Surasak Leenapongpanit
Ranch Hand

Joined: May 10, 2002
Posts: 341
Hibernate object/relational persistence and query service for Java. Hibernate lets you develop persistent classes following the common Java idioms including association, inheritance, polymorphism, composition and the Java collections framework. The Hibernate Query Language is an object-oriented extension to SQL to provide a bridge between the object and relational worlds.
Mathew Sam
Ranch Hand

Joined: Dec 19, 2001
Posts: 124
What are its advantages? Why should I use it replacing JDBC?
Dave Salter
Ranch Hand

Joined: Jul 20, 2005
Posts: 293

Hibernate allows you to be much more productive (when you are up to speed) and hides the complexities of databases and JDBC from the developer. It also makes it easier to switch to different database vendors as Hibernate knows how to generate different dialects of SQL (e.g. sequences in Oracle or identity values in SQL Server).

The major reason for using Hibernate (IMO) is that it allows you to concentrate on your domain problem and provides favilities to persist it to the database. You still need to be aware of what Hibernate is doing to your database however.
Mathew Sam
Ranch Hand

Joined: Dec 19, 2001
Posts: 124
Thanks a lot.

Can anyone give guidance on how to start using Hibernate?
Are there any good online tutorials available?
Dave Salter
Ranch Hand

Joined: Jul 20, 2005
Posts: 293

You could try the Getting Started Guide over on the Hibernate web site.
Patrick Peak
Greenhorn

Joined: Aug 23, 2005
Posts: 19
Nick also wrote a Hibernate Tutorial a while back as well. You can find that here http://www.systemmobile.com/articles/IntroductionToHibernate.html.


Hibernate Quickly - <a href="http://www.manning.com/books/peak" target="_blank" rel="nofollow">http://www.manning.com/books/peak</a>
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Hibernate - Newbie