Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Hibernate or EclipseLink for JPA? [closed]

I was wondering if anyone has experience with the JPA2.0 implementation of any of those frameworks? Especially together with Spring3.x which comes with EclipseLink support.

Do you use any of those frameworks and JPA2.0 for production? Any severe issues?

like image 261
Ta Sas Avatar asked Jul 13 '10 07:07

Ta Sas


People also ask

Is Hibernate required for JPA?

You don't necessarily require JPA if you are using Hibernate in your Data Layer. But if you use JPA specification for Hibernate, then it will make switching to other ORM tools like iBatis, TopLink easy in future, because the specification is common for others as well.

What is the difference between EclipseLink and Hibernate?

EclipseLink is more standards compliant, since it is the reference implementation for JPA 2, Hibernate has some compliancy issues, but is more mature. One of the main benefits of EclipseLink is that you can call native SQL functions directly in your JPQL queries. In Hibernate this is not directly possible.

Is EclipseLink a JPA?

EclipseLink, built by the Eclipse Foundation, provides an open-sourced JPA implementation.


1 Answers

EclipseLink is more standards compliant, since it is the reference implementation for JPA 2, Hibernate has some compliancy issues, but is more mature.

One of the main benefits of EclipseLink is that you can call native SQL functions directly in your JPQL queries. In Hibernate this is not directly possible.

But Hibernate has a bigger community, better documentation and also better error messages.

like image 142
Timo Westkämper Avatar answered Oct 04 '22 00:10

Timo Westkämper