Custom spring-data repository backend
java, spring, spring-data
Solution
The central piece to look at is the API in the Spring Data Commons module. It effectively provides the foundation for all of the existing store implementations. The support consist of the following aspects:
- Object-to-store mapping (meta-model and conversion implementation)
- Repository implementation and DI container configuration support
The best way to get started is by having a look at the MongoDB module for example and mimic the implementation. We're currently working on a developer guide whose work-in-progress version you can find in the Spring Data Commons wiki.
Problem
I already have a working object storage service, developed in-house - let's call it a database. Now I would like to use spring-data for CRUD operations on it, so that in the future I can easily switch to some conventional database. The question in: how can I implement yet another spring-data repository backend? Any guides, tutorials?