Can Spring-data be used with CouchDB? I know there is a community project Spring-Data-Couchbase but is that compatible with CouchDB or does it only work with Couchbase?
If not, is there a CouchDB version of Spring-data? Or am I unable to use spring-data with CouchDB?
Spring Boot gives you defaults on all things. For example, the default database is H2 . Consequently, when you want to use any other database, you must define the connection attributes in the application. properties file.
CouchDB is an Apache open source project written in the Erlang language and is free for the user to download. Couchbase is also open source, but it has enterprise, community and developer editions as a portfolio of components. You can download the community edition.
Spring Data JPA aims to significantly improve the implementation of data access layers by reducing the effort to the amount that's actually needed. As a developer you write your repository interfaces, including custom finder methods, and Spring will provide the implementation automatically.
Have a look at https://github.com/rwitzel/CouchRepository
This project provides a Spring Data API for CouchDB databases.
Disclaimer: I have set up the project.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With