Meaningless Drivel is fun!
The moose likes Object Relational Mapping and the fly likes Best ORM Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Best ORM" Watch "Best ORM" New topic

Best ORM

Thomas Mcfarrow
Ranch Hand

Joined: Jul 09, 2001
Posts: 137
I am looking for a free ORM ... which one do you prefer?

Mark Spritzler

Joined: Feb 05, 2001
Posts: 17276

Many people prefer Hibernate, but OJB is also an alternative.


Perfect World Programming, LLC - iOS Apps
How to Ask Questions the Smart Way FAQ
Lasse Koskela

Joined: Jan 23, 2002
Posts: 11962
I would also prefer Hibernate but if you feel like trying out JDO, there's a couple of open source implementations including JPOX which just gained TCK compliance.

Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
Payam Fard
Ranch Hand

Joined: Jan 31, 2003
Posts: 75
Hibernate is very good and easy to use with lots of documentation online.
Theodore Casser
Ranch Hand

Joined: Mar 14, 2001
Posts: 1902

From the brief time I've been piddling around with it, I have to go with the consensus here and agree that Hibernate seems to be very friendly and a good choice for this. It seems nice and flexible, and not terribly hard to use.

Theodore Jonathan Casser
SCJP/SCSNI/SCBCD/SCWCD/SCDJWS/SCMAD/SCEA/MCTS/MCPD... and so many more letters than you can shake a stick at!
Kalpesh Soni
Ranch Hand

Joined: Jan 02, 2001
Posts: 312
courtesy Sanjib Ghosh from my company Tavant
Chose your solution wisely so that it makes sense even after 2 yrs !


Many of you may be so busy in your day-to-day work that you may not be following what is happening in java world. If you deal with java day-to-day basis, it may be worth to take a note.

Do you know java 1.5 beta 2 is out and the final release is not very far. It is such a big release that Sun is revising the version number to Java 5
Guess, how many new features are added in this release?. 10 ?, 20 ?, 50 ? ... Well, take a look at

Even more exciting thing is happening in enterprise world.

EJB3.0 early draft is out for review: Those who hate EJB must take a look at this. The fat is gone. It has become simple POJI/POJO model. Add a few annotations to it and you get an EJB. Seriously, no more Home interface, no more DD hell. No more JNDI reference in your code. Container services are provided using dependency injection ( to learn more read : ) . Bye Bye Service Locator pattern. You can very easily test it outside the container. Don't you just love it. Wait, there is more ...

The whole entity bean model is changed completely. It is almost identical(even syntax wise) to Hibernate 2.x. Take a look at what future entity bean would look : Suddenly, DTO becomes an anti-pattern!

However, there are some issues with java persistence model in the community. There is some big ego fight going on between EJB EG and JDO EG for last couple of months. It creates even more confusion as Entity Bean 3.0 model is so much similar to JD0 2.0 model. Geir & Jeremy state the whole confusion nicely and suggested a solution:
Let's see if these two EG converge and come out with one solution for persistence. Either way, we get a TRANSPARENT persistence model.

It is exciting time for java technology. However, it also adds the responsibility to us to upgrade our skills. It is even more important for us, Indians, as our friend vishal saxena has pointed out to "All those techies strutting around Bangalore's MG Road take notice. Your competitor in the US is getting ready to strike back " :

As somebody said, the illiterates in 21st century are those, who do not have the ability to unlearn and relearn.

Happy Learning,
Sanjib Ghosh
[ July 23, 2004: Message edited by: Kalpesh Soni ]

Test 094, IBM WID 6.0 cert
SCJP 1.2
SCBCD 1.3 Beta
SCWCD 1.4 Beta

Karthik Guru
Ranch Hand

Joined: Mar 06, 2001
Posts: 1209

he whole entity bean model is changed completely. It is almost identical(even syntax wise) to Hibernate 2.x.

and then,

It creates even more confusion as Entity Bean 3.0 model is so much similar to JD0 2.0 model.

Ok this has gotten me confused. So what is closer to finally? Hibernate / JDO? or they will all be similar 2 years hence
Jim Baiter
Ranch Hand

Joined: Jan 05, 2001
Posts: 532
This is a really good ORM analysis by an independent entity.
Thomas Whitmore
Ranch Hand

Joined: Aug 05, 2004
Posts: 33
Hi Kalpesh,

We think database mapping & integration capability are more important than api, because commercial projects need the flexibility and adaptability to cope with integration, changing requirements, and other difficulties.

Standards are a major to be able to cope this, and JDO is heavy weight with real presence. Companies need to deliver projects and avoid running into dead-ends 2/3 of the way there. (Most of us have been there; it gets real hard).

But being conservative grouches at heart, we're very clear on API and theory issues. The JDO api has highly efficient data transfer, more flexible and bedrock strength of identity handling, and real OO query expressions without old sql-syntax transformation.

(Sentence removed by Mark Spritzler)

Best luck,

Thomas Whitmore
[ September 11, 2004: Message edited by: Mark Spritzler ]
Andy Grove

Joined: Nov 11, 2003
Posts: 18

My company produces a low cost development tool called FireStorm/DAO that will automatically generate your persistence tier based on an existing database schema. It actually gives you the choice of generating code based on JDBC, Entity Beans, or JDO. It also allows you to generate J2EE applications consisting of a session bean facade onto the persistence tier as well as a fully working web application based on Struts and Tiles.

For more information please visit:


Andy Grove
Code Futures, Ltd.
I agree. Here's the link:
subject: Best ORM
It's not a secret anymore!