Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Is hibernet an upcoming technology

 
ramnna jain
Ranch Hand
Posts: 129
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1374
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just to add, Hibernate doesn't compete with EJB 3 JPA sub-spec. It provides an implementation called Entity Manager.
 
ramnna jain
Ranch Hand
Posts: 129
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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.
 
Vikas Kapoor
Ranch Hand
Posts: 1374
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
...Or "Deprecated". I have only experience with XML based configuration.
 
ramnna jain
Ranch Hand
Posts: 129
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic