Reputation: 83
In my company, we are using Oracle DB and Weblogic application server. So in the process to upgrade or switch to new ORM, we shortlisted two options - Hibernate and EclipseLink.
I gathered following summary regarding both ORMs -
Hibernate:
EclipseLink:
Right now we are preferring Hibernate but there are concerns/reasons like EclipseLink developed by Oracle and preferred ORM in Webogic/ Oracle DB world (compatibility of ORM with DB and App. server), support comparison with both ORM, which are preventing to finalize the decision.
Please help me with you views and opinions and share you experience with us as which one is better and why so that we can make a perfect decision.
If you want you can also reply to me @ [email protected].
Thanks.
Upvotes: 2
Views: 1773
Reputation: 14061
Disclosure: I work for Red Hat, the company that supports Hibernate development.
My short answer: use whatever JPA provider your Application Server bundles. The logic is that your App Server was tested with that JPA provider in mind.
Long answer: There are some things from your answer which are not exactly correct. So, allow me to correct them, as well as to provide some comments for other items.
"Fully supported by Oracle. Hibernate no. In case of pb, it could be cumbersome to prove that it is a pure Weblogic one. Concretely, we will have to prove it (waste of time and complexity)."
I'd say that Red Hat support is very helpful, and they won't try to say "it's a weblogic problem" (unless it really is). The support guys are not trained to first dismiss your claim. If it's indeed a problem in Hibernate, they'll quickly find this out and get it solved.
We are currently relying on Hibernate for our legacy offer and are facing pb in second level cache (JGroups). Today, we are riding off this part!. Consequences are limitation in clustering approach (perf)
If you have a JBoss Subscription (I believe that any subscription provides entitlement for Hibernate support), you could ask Red Hat about this. But I'll say that Hibernate and JBoss Cache were well tested to work together, and that it indeed works in clustered environments. But if it's a limitation in JBoss Cache, you can use another one (Infinispan, for instance). Not sure it's currently supported, but you can give it a try.
Indeed Hibernate is open source, so you can imagine handling it. In reality, the code is so complex that it is nearly impossible to modify it. Moreover as it is LGPL, you need to feedback all the modified sources to the community systematically.
Hibernate is indeed complex, but most of it is not that complex. Also, IANAL, but I believe that you need to feedback the modified sources only if you redistribute your "new" binary.
Hibernate comes from JBoss community.
I don't understand why this is a point for EclipseLink, but note that JBoss is part of Red Hat. While the community is independent (like Fedora), Red Hat funds it's development.
Upvotes: 2
Reputation: 592
Defently EclipseLinks has the best support for ORacle and it's the most suitable ORM for Oracle/WebLogic usage. As you said Fully supported by Oracle and It has a lot of pretty useful features for working with Oracle, f.e. sql hints and etc. See more here http://simpletoad.blogspot.com/2012/11/what-u-must-know-about-eclipselink-orm.html#links
Upvotes: 0