aspose file tools*
The moose likes Object Relational Mapping and the fly likes JPA 2.0 & OpenJPA 2.0 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "JPA 2.0 & OpenJPA 2.0" Watch "JPA 2.0 & OpenJPA 2.0" New topic
Author

JPA 2.0 & OpenJPA 2.0

Kgomotso Manamela
Greenhorn

Joined: Oct 12, 2007
Posts: 2

Hi All

I just join this company and they are using OpneJPA 2.0, yes OpneJPA 2.0 is an implementation of JPA 2.0 just like Hibernate.

I used JPA 2.0 not OpenJPA 2.0 from my previous companies but what exztly are/is the difference/s and advantage/s between OpenJPA 2.0 and JPA 2.0, i did some research and cant
find the diffrenece/s.

I just need clarification...on this
Viggo Navarsete
Ranch Hand

Joined: Feb 02, 2009
Posts: 42
Isn't it easier to think of it this way: JPA 2.0 is a specification, while OpenJPA and Hibernate are implementations of the specification?! And as a consequence..you can't use JPA 2.0 since it's just a specification, you have to use an implementation of it, and you can pick either OpenJPA or Hibernate.
Kgomotso Manamela
Greenhorn

Joined: Oct 12, 2007
Posts: 2

thanks....wil do some resch between OpenJPA 2.0 and Hibernate.thanks clarification.
Viggo Navarsete
Ranch Hand

Joined: Feb 02, 2009
Posts: 42
My advice would be to use only JPA 2.0 features if possible. In this way you can easily port you application between different implementations (and runtime contains which have bundled different implementations of JPA 2.0).

It means, stop comparing OpenJPA 2.0 and Hibernate, write business functionality, and only compare if you need some very specific optimalizations/extensions made by either of the providers.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: JPA 2.0 & OpenJPA 2.0