Win a copy of JDBC Workbook this week in the JDBC and Relational Databases forum
or A Day in Code in the A Day in Code forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

Is hibernet an upcoming technology

 
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?
 
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).
 
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.
 
Rancher
Posts: 43016
76
  • 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".
 
Bartender
Posts: 10336
Hibernate Eclipse IDE 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.
 
They worship nothing. They say it's because nothing is worth fighting for. Like this tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic