Does the term "hibernate" mean something specific with regard to ORM libraries? Is there a story behind it?
-
2Laptop hibernate, or Java hibernate?– Nick BastinAug 26, 2009 at 3:09
-
I have edited the content to java 'Hibernate'– NigerAug 26, 2009 at 3:13
-
I can see people are rating in -ve. Don't know the reason.– NigerAug 26, 2009 at 3:14
-
1-ve? I down-voted 'cause you forgot to specify sufficient context in your initial question. Removed now that you've updated.– Shog9Aug 26, 2009 at 3:16
-
3I believe the "n" part of the naming construct is to denote that it is to be used under the .(n)et environment. same as nUnit, and nMock... Although for Quartz, it's Quartz.NET... but that's my $0.02 on the subject.– Richard BAug 26, 2009 at 6:43
5 Answers
It's pretty clear to me.
An object is sent to hibernation to a RDBMS, when it comes back ( if it does ) it wakes up from his hibernation.
Sleep as "Cinder6" says , is a short term "wait"; much more like the serialization process, your object gets to sleep and wakes up in another node ( or VM )
If an object is sent to a DB it may wait for a week, a month, a year, before it gets fetched again hence it was sent to hibernation.
Hibernate is about "replacing direct persistence-related database accesses with high-level object handling functions". So it's about data that is sleeping in a database.
Persistence is where data outlives the process that created it. Which in more basic terms means storing the data in non-volatile memory (doesn't get lost when the power's switched off) Nowadays, this usually takes the form of storage within a database.
A problem occurs however because programming languages (such as Java) store data and utilise it in a completely different form to that of a database. So there is a need for a conversion process (objects to db records) and then upon retrieval the opposite (db records to objects). Hibernate is a library that automates this whole process and avoids the potential pitfalls that can occur when converting (known as object relational impedance mismatch)
Therefore Hibernate helps abstract away the whole database element, it's almost as if the objects are being put in storage and then retrieved when needed - or being put 'to sleep' and called again when needed.
I doubt you'll find anything authoritative on the matter, but I would say it's a logical choice. When you sleep, you can wake up pretty easily, and will do so within a shorter amount of time than if you were to hibernate (I'm pretending you are a bear right now). Since sleep and hibernate are similar, manufacturers probably wanted to extend the metaphor.
EDIT: Well shoot, now it's about a Java library. So much for my bear theories.
-
3Also, you must feed your machine several times its size in weight before it goes into hibernation.– CoreyAug 26, 2009 at 3:12