• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Hibernate - Newbie

 
Mathew Sam
Ranch Hand
Posts: 124
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,

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


Regards,
Sam
 
Dave Salter
Ranch Hand
Posts: 293
Java Mac OS X Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 341
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 124
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What are its advantages? Why should I use it replacing JDBC?
 
Dave Salter
Ranch Hand
Posts: 293
Java Mac OS X Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 124
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot.

Can anyone give guidance on how to start using Hibernate?
Are there any good online tutorials available?
 
Dave Salter
Ranch Hand
Posts: 293
Java Mac OS X Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You could try the Getting Started Guide over on the Hibernate web site.
 
Patrick Peak
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nick also wrote a Hibernate Tutorial a while back as well. You can find that here http://www.systemmobile.com/articles/IntroductionToHibernate.html.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic