Spring-data-couchbase

Hi,

I want to add an abstraction layer between my service methods and the couchbase client so that no couchbase client methods are directly called in my service classes.
Without this abstraction layer I won’t be able to convince the investors to select couchbase as our document database.

The only java option I found was this one:


which is based on the Spring Data Repositories abstraction layer.

I’m posting my questions in this forum because the suggested forum on the github is too general.
General questions:

  1. Is this code maintained by Couchbase, if no will Couchbase validate it?
  2. When will a production version be available?

Specific questions:

  1. This is more a suggestion: will there be a dedicated forum?
  2. The following links on the github page are broken:
    the User Guide: http://docs.spring.io/spring-data/data-couchbase/docs/current/reference/html/
    the JavaDocs: http://docs.spring.io/spring-data/data-couchbase/docs/current/api/
  3. Is there any special setup in eclipse when retrieving dependencies from github, I’m getting errors when trying to retrieve ?

Workaround for 3): installed the jars directly from:
http://repo.springsource.org/libs-milestone/org/springframework/data/spring-data-couchbase/1.0.0.M2/

Problems encountered when trying to install from github:

As suggested on the github page I added the following in my pom.xml file:

org.springframework.data spring-data-couchbase 1.0.0.RC1 spring-libs-milestone Spring Milestone Repository http://repo.springsource.org/libs-milestone

I get following error:

eclipse.buildId=3.4.0.201310051818-RELEASE-e38
java.version=1.7.0_45
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Framework arguments: -product org.springsource.sts.ide
Command-line arguments: -os win32 -ws win32 -arch x86 -product org.springsource.sts.ide

Warning
Tue Jan 28 14:53:09 IST 2014
The POM for org.springframework.data:spring-data-couchbase:jar:1.0.0.RC1 is missing, no dependency information available

Your help will be appreciated.

Fred

Answers to my General questions:

  1. Is this code maintained by Couchbase, if no will Couchbase validate it?

  2. When will a production version be available?

  3. yes, it will be maintained by Couchbase staff

  4. this month

answers I got from the Couchbase guys at a Couchbase event.

Solution to my specific question 3): Problem downloading jars with maven setup as suggested by quick start guide on github:

The problem was due to the fact that 1.0.0.RC1 version was missing, the latest version I found was: 1.0.0.M2

So replace version number with version that exist and it should work.

Maven configuration

Add the Maven dependency:

org.springframework.data spring-data-couchbase 1.0.0.M2 spring-libs-milestone Spring Milestone Repository http://repo.springsource.org/libs-milestone

How did I find out what the latest version was?

I got following error:

The POM for org.springframework.data:spring-data-couchbase:jar:1.0.0.RC1 is missing, no dependency information available

So I took the repository url http://repo.springsource.org/libs-milestone

from there you follow the package structure => http://repo.spring.io/libs-milestone/org/springframework/data/spring-data-couchbase/

On that link you see folder: 1.0.0.M2,1.0.0.M1 but not :1.0.0.RC1
In short it was a documentation problem.

Regards

Fred

Small addition: we released RC1 yesterday, so I guess you want to upgrade! I also revamped the readme and I’m working actively on better documentation.