File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Object Relational Mapping and the fly likes article comparing Java ORM frameworks Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "article comparing Java ORM frameworks" Watch "article comparing Java ORM frameworks" New topic

article comparing Java ORM frameworks

Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42959
  73 just published an article comparing some of the major contenders in the Java ORM space (EJB, JPA, Hibernate, TopLink):
Mark Spritzler

Joined: Feb 05, 2001
Posts: 17276

Unfortunately, I think that article does more harm, and introduces more confusion to newbies, because it looks like the 4 listed are seperate products and do not overlap. That is a problem, because both Toplink and Hibernate implement the JPA spec. Many people think that if they choose JPA, they can't use Toplink or Hibernate, which is incorrect.

So I saw this under the Hibernate sections
"You need container-provided services, such as those provided by EJB, in which case your choices are pretty much limited to EJB."

Well, if you are using Hibernate's version that also implements the JPA spec, and run it inside a App Server, you get all the container-provided services. Even before, when you ran beginTransaction in Hibernate's sesssion api, Hibernate was smart enough to see if JTA was there and join the JTA Transaction of the EJB Container.

So, I would be more concerned with the misconceptions that that article presnets, and would much rather people know that there is a lot of flexibility in what you can choose to use.


Perfect World Programming, LLC - iOS Apps
How to Ask Questions the Smart Way FAQ
Consider Paul's rocket mass heater.
subject: article comparing Java ORM frameworks
It's not a secret anymore!