• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

what is Hibernate, & why it is named as 'Hibernate'

 
Kishore Dandu
Ranch Hand
Posts: 1934
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I haven't used it and abused it yet.

But I am amused to find out more about it.
 
sunitha reghu
Ranch Hand
Posts: 937
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can learn a lot from here
 
somkiat puisungnoen
Ranch Hand
Posts: 1312
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is Hibernate for?

Hibernate is a persistence service that stores Java objects in relational databases - or provides an object oriented view of existing relational data. (Hibernate also does some XML data binding!)




-------------------------------


When fall turns to winter and the temperature dips, the food sources for the wild animals becomes very scarce. Some animals wait out the harsh conditions of winter, constantly searching for food and shelter. Other animals, like the bear, spend the winter in hibernation.

Hibernation is a dormant sleep-like state. By going into hibernation the bears bypass winter when their food supply, nuts and berries, disappears. Animals like the bear would find it extremely difficult to find enough food during winter, and therefore go into hibernation.

During hibernation the bear cuddles up in a cave or in a hollowed out tree, safe from the dangers of winter. In order to survive this long period of inactivity the bear must build up its body weight by accumulating fat. In the months before hibernation bears can gain up to forty pounds of fat per week. A bear�s body goes through several changes once it enters hibernation. Its heartbeat drops from fifty-five beats per minute to ten beats per minute, and the bear�s body temperature will drop from five to nine degrees below normal. While in hibernation the bear uses the stored energy it accumulated as fat to survive. So a bear can lose from fifteen to forty percent of its body weight during the winter just by sleeping!

Bears will generally enter hibernation in early October and emerge sometime in April or May, when their food is plentiful again. The hibernation cycle is just another unique adaptation of nature that allows many animals like the bear to survive during the severe conditions of winter time.

[ August 31, 2004: Message edited by: Somkiat Puisungnoen ]
 
Sergio Gonz�lez
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What are the problems that Hybernate resolves?
 
Frank Malinowski
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Sergio Gonz�lez:
What are the problems that Hybernate resolves?


It allows you to map Java Objects to a Database without making the database calls from your Objects. This means that you can use Plain Old Java Objects (POJO) and whichever data structures you like and still have them stored in a database.

Frank
 
Gavin King
author
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It solves the so-called "object/relational mismatch problem":

http://www.agiledata.org/essays/impedanceMismatch.html

We go into much detail about this in the first chapter of the book.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic