Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JPA 2.0 Implementations comparison : Hibernate 3.5 vs EclipseLink 2 vs OpenJPA 2

What's your choice? Do You have any suggestions and experience?

I'm developing an application with Hibernate 3.5 and Spring 3.0

Pros:

  • Good documentation
  • Easy configuration and helpful logs
  • Popularity - wide community
  • Some extensions to JPA
  • Some additional Tools - JBoss Tools for Eclipse, hbm2ddl, generating static metamodel etc...

Cons:

  • Bugs! (Sequences, collections etc...)
  • Lots of reatures are doubled with "pure" Hibernate. There's a mess in legacy Hibernate and JPA annotations.

I'm considering to switch to EclipseLink. What do You think ?

Edit:

I've tried EclipseLink and have very bad experiences. It seems like EclipseLink needs LoadTimeWeaver and likes to run on OSGi platform rather than simple Jetty or Tomcat environment. I just don't have time for all this configuration stuff.

like image 579
Piotr Gwiazda Avatar asked Jun 14 '10 06:06

Piotr Gwiazda


1 Answers

EclipseLink runs perfectly fine without the Weaver and equally well in Jetty, Tomcat or an OSGi platform. The standard download is a simple eclipselink.jar. Did you perhaps download the OSGi bundles by mistake?

The Weaver is not required but it will add some performance benefits and if you do no want to configure it to run in Spring you could use the static weaver at compile time ( http://wiki.eclipse.org/Using_EclipseLink_JPA_Extensions_%28ELUG%29#To_Configure_Static_Weaving_for_JPA_Entities ).

like image 174
Gordon Yorke Avatar answered Oct 17 '22 03:10

Gordon Yorke