Questions tagged [spring-data-couchbase]

Spring Data Couchbase project provides Spring Developers a POJO centric model for interacting with documents stored in Couchbase.

Developers use a Repository style data access pattern and Spring Data Couchbase adds query derivation based on N1QL (a superset of SQL), support for Spring configuration of the database client, and the ability to support the @Cacheable annotation building on the Spring Cache project.

Resources

Related tags

380 questions
2
votes
2 answers

Versioning of Documents in Couchbase

We want to add version info in a metadata like information to all of our Documents in Couchbase. Why? Since our Entity objects are constantly evolving, we want to achieve the following without breaking our data services: GET all Books of version…
2
votes
1 answer

Unable to execute query due to the following n1ql errors

I am unable to execute a query due to the following n1ql errors: Repository Query: public ClientMatrixFactorPopUp findBySupportedValuesAndRequestId(SortedMap supportedValues,Long requestId); Expected N1QL: SELECT * FROM b_factor WHERE _class =…
Sanka
  • 1,294
  • 1
  • 11
  • 20
2
votes
1 answer

No index available on keyspace in couchbase

I have a couchbase DB with documents stored, like { "_host": { "kind": "KIND1", "id": "ID1", .. } I have created this index: CREATE INDEX `kind-id-index` ON `dev`(`_host.kind`,`_host.id`) but when I use this…
Sandro Rey
  • 2,429
  • 13
  • 36
  • 80
2
votes
0 answers

why spring framework still does not have couchbase "analytics query" support

I am using spring-data-couchbase-3.1.6 jar but it does not support analytics queries. Verified in…
2
votes
2 answers

Spring JPA & Couchbase - com.couchbase.client.java.error.ViewDoesNotExistException: View cat/all does not exist

My Spring boot app is trying to get all documents of type Cat from the Couchbasebucket. There is an index for that: CREATE INDEX cats_idx ON `cats`(_class) WHERE _class = 'com.example.Cat' And there is a Repository class: public interface…
riorio
  • 6,500
  • 7
  • 47
  • 100
2
votes
0 answers

Spring boot - Couchbase AbstractCouchbaseConfiguration - How to avoid overriding unnecessary methods

I am connecting to couchbase using my spring boot app. It's connecting fine and everything works. Here's my configuration class for a @ReadingConverter. @Configuration @EnableCouchbaseRepositories(basePackages =…
2
votes
1 answer

Not able to deploy couchbase event function

I have a document "student" in bucket student-records where id is the documentd. { "id":"101", "fname": "abc", "lname": "xyz", "rank": "1", "scholarShip": "", "grade": "" } My job is to find all student with rank 1 and then update…
Bifrost
  • 417
  • 5
  • 23
2
votes
1 answer

Log Spring Data queries from reactive couchbase repository

a similar question has been asked and answered here. The solution is to set logging level from org.springframework.data.couchbase.repository.query to DEBUG: logging: level: org.springframework.data.couchbase.repository.query: DEBUG The…
ideskov
  • 23
  • 2
2
votes
1 answer

Spring's couchbase JPA repository with abstract class fails to find entity

We are developing a project in Springboot that uses a Couchbase, I have following classes: public abstract class Content { ... } public class Film extends Content { ... } public class Serie extends Content { ... } Then I have…
FVod
  • 2,245
  • 5
  • 25
  • 52
2
votes
1 answer

Couchbase DefaultOrphanResponseReporter Orphan responses observed

I have a SpringBoot 2 app that uses using Spring Data Couchbase. I have this message on the logs every minute 2019-11-12 13:48:48,924 WARN : gid: trace= span= [cb-orphan-1] c.c.c.c.t.DefaultOrphanResponseReporter Orphan responses observed:…
Sandro Rey
  • 2,429
  • 13
  • 36
  • 80
2
votes
2 answers

Spring data couchbase querydsl integration

Does spring-data-couchbase have support for integrating querydsl in the repository classes? If so can someone help me on this? This documentation does not provide me with the details on the annotation processor and maven goals to be used. Thanks…
Viswanath
  • 49
  • 1
  • 4
2
votes
0 answers

How can I provide a custom query for deleteAll in Spring data Couchbase

I need a custom query (due to entity subclassing) for my deleteAll repository method such as (Kotlin code): @Query("#{#n1ql.delete} WHERE (_class='a.b.C' OR _class='d.e.F')") override fun deleteAll() However, when running this I get:…
Tom
  • 1,965
  • 3
  • 25
  • 33
2
votes
0 answers

Spring Data Couchbase: projections with reactive repository

Reactive Couchbase repository with a method using DTO projections fails with CouchbaseQueryExecutionException: Query returning primitive got more values than expected: 5 Is DTO projection supported by reactive repositories? I'm trying to implement…
kobasad
  • 55
  • 1
  • 7
2
votes
0 answers

STS4 : Unable to connect to Couchbase in debug mode

I am trying to debug my spring boot application in STS 4 (Version: 4.2.2.RELEASE), however application is not able to start in debug mode. It seems it is not able to connect to couchbase server. To my surprise when I am running application in run…
GAURAV PANT
  • 135
  • 4
  • 11
2
votes
1 answer

Spring & Couchbase - No converter found capable of converting from type [java.lang.Long] to type [java.sql.Timestamp]

We have a document that we save to a Couchbase DB. It has a timestamp field: @Document class Cat{ @Id @GeneratedValue(strategy = GenerationStrategy.UNIQUE) private String id; @Field Timestamp birthdateTimestamp; We are able to save data into the…
riorio
  • 6,500
  • 7
  • 47
  • 100