I’m wondering if it is possible to specify SimpleJPA as the persistence provider used by Spring-Data-JPA. I’m not a JPA expert so I hope this question isn’t silly. Is it as easy as just specifying SimpleJPA’s entity manager factory in the persistence.xml? I have yet to find anywhere online where someone has used Spring-Data-JPA to connect to Amazon’s SimpleDB, I would love it if someone could point me in the right direction.
I’m wondering if it is possible to specify SimpleJPA as the persistence provider used
Share
Generally setting up your persistence provider is just a matter of setting up the
EntityManagerFactorythrough your Spring context (in case you use the Spring container). Thus have a look at how to configureEntityManagerFactoryinstances in Spring.There might be the need to implement a custom
JpaVendorAdapterto let Spring use the SimpleDB JPA implementation correctly. For some advanced functionality (e.g. using pagination with manually defined queries) we’d have to tweak the Spring Data JPA codebase a bit. If you’d like to see that supported feel free to open a ticket in our JIRA.