How can I use Hibernate, or OpenJPA with EclipseLink [message #376358] |
Wed, 16 July 2008 16:41  |
Eclipse User |
|
|
|
I want to be able to plug in different JPA implementations in my
application without a lot of reconfiguration and be able to continue
to use the advanced annotations and capabilities of EclipseLink.
My understanding is that EclipseLink, while it uses
TopLink as its default JPA implementation, sits on top of and
allows for plugability by simply dropping in a different persistence jar,
such as Hibernate.
However, the examples on the EclipseLink wiki indicate that all the
properties
in persistence.xml have to be changed, and some (the EclipseLink-advanced
ones)
have to be removed altogether. The same holds for entity annotations. In
addition, the examples seem to indicate that the method for injecting an
EntityManager can vary depending on the JPA container.
If I want to use Hibernate with EclipseLink cache, I can't do it just by
dropping in the right jar files.
Is this correct? Any suggestions would be appreciated.
Glenn...
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04094 seconds