wood burning stoves 2.0*
The moose likes Object Relational Mapping and the fly likes Is hibernet an upcoming technology Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Is hibernet an upcoming technology" Watch "Is hibernet an upcoming technology" New topic
Author

Is hibernet an upcoming technology

ramnna jain
Ranch Hand

Joined: Mar 16, 2009
Posts: 129

I am new to ORM.

I heard about JPA, JDO, Hibernet etc.

Can any buddy help me to know that Hibernet is still competitive technology.
Is it a speedily improving and effective?
Vikas Kapoor
Ranch Hand

Joined: Aug 16, 2007
Posts: 1374
Hello Ramnna,

Hibernate is one of the most popular ORM framework now a days. Refer http://www.hibernate.org/ for more information.
If you are interested in book then I would suggest Hibernate in Action and Java Persistence with Hibernate (Manning Publication).
Lisa Ray
Greenhorn

Joined: Mar 05, 2009
Posts: 22
Just to add, Hibernate doesn't compete with EJB 3 JPA sub-spec. It provides an implementation called Entity Manager.
ramnna jain
Ranch Hand

Joined: Mar 16, 2009
Posts: 129


Instead of thousands of threads seeking connection objects and firing the same query to fetch same set of data from the database, we can fire one query per set of data requested very frequently and store it in xml or in objects mapping to that set of data, and then for each thread requesting the data is fetched from these objects or xml which is comparatively very efficient.

Please comment if it is the way hibernet works!? Because it is some thing I have in my mind about hibernet.

Well! thanks a lot for your kind help... Vishal, Lisa.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42264
    
  64
ramnna jain wrote:Please comment if it is the way hibernet works

No, not really. Firstly, nothing is stored in XML - it's all in memory. An earlier version of Hibernate (versions 1 and 2) used XML files for configuration, but those have been dropped for annotations. Secondly, it can use connection pooling, but that's not specific to Hibernate - it's how just about all multi-threaded applications use databases these days. Thirdly, you're right that it does cache some DB records in memory for performance reasons. And lastly, it's called "Hibernate", not "hibernet".
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336


An earlier version of Hibernate (versions 1 and 2) used XML files for configuration, but those have been dropped for annotations

Well, not dropped but "augmented". Some of us Luddites out there prefer the XML configuration route.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Vikas Kapoor
Ranch Hand

Joined: Aug 16, 2007
Posts: 1374
...Or "Deprecated". I have only experience with XML based configuration.
ramnna jain
Ranch Hand

Joined: Mar 16, 2009
Posts: 129

Thank you Ulf, Paul...

Could you please suggest a good book, I can start with Hibernate.

earlier I have been suggested for "Java Persistence With Hibernate".
Other one is "Beginning Hibernate" - Apress.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Is hibernet an upcoming technology