| spring configuration for eclipselink spring-data jpa [message #1856740] |
Tue, 27 December 2022 08:23  |
Eclipse User |
|
|
|
HI,
I am new to eclipselink. In my application we are trying to migrate from toplink to eclipselink as a reason spring 4.x version doesnot support toplink.
So we are using spring application(not a spring boot) where iam trying to use spring data jpa with eclipselink as jpa provider.
Could you please help me out of how can i configure it in spring xml to use eclipselink as a spring jpa provider?
|
|
|
|
|
| Re: spring configuration for eclipselink spring-data jpa [message #1856827 is a reply to message #1856796] |
Wed, 04 January 2023 11:49  |
Eclipse User |
|
|
|
I am surprised that what ever TopLink support existed in Spring won't work with the latest TopLink versions - not much has changed that I'm aware (well, a lot, as it uses EclipseLink under the covers now, but my understanding was it should mostly work the same).
TopLink->EclipseLink migrations are really just package renaming. With that in mind, you should be able to use EclipseLink native query expression with EclipseLink as the provider. I'm not a Spring expert but believe it only exposes JPA, so you may need to get at the sessions you are used to by unwrapping EntityManagers. It is certainly possible, and even with little Spring knowledge, I was able to write one for a project last year based on the how-tos and forum posts google finds (but no longer have access to it).
Let us know if you have problems and best of luck
|
|
|
Powered by
FUDForum. Page generated in 0.04079 seconds