Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JPA 2.0 & OpenJPA 2.0

 
Kgomotso Manamela
Greenhorn
Posts: 2
Eclipse IDE Java Oracle
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 42
  • 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2
Eclipse IDE Java Oracle
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks....wil do some resch between OpenJPA 2.0 and Hibernate.thanks clarification.
 
Viggo Navarsete
Ranch Hand
Posts: 42
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic