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
0
votes
1 answer

Simple "count()" query with Spring Data Couchbase

I'm having a problem I don't seem to find a solution for, and it looks really odd given i've tried everything I could with the official Spring Data Couchbase documentation. Basically all i'm trying to do is a simple count() method. My Repository :…
0
votes
1 answer

couchbase timeout exception using Spring Data

spring-data-couchbase 2.0.0.RELEASE 4.0.0-4047 Community Edition (build-4047) At times I face connection timeout exception being thrown Caused by: com.couchbase.client.deps.io.netty.channel.ConnectTimeoutException: connection timed out I am…
0
votes
0 answers

Couchbase Template Version 1.4.2

In the AbstractCouchbaseConfiguration Java protected FieldNamingStrategy fieldNamingStrategy() { return abbreviateFieldNames() ? new CamelCaseAbbreviatingFieldNamingStrategy() : PropertyNameFieldNamingStrategy.INSTANCE; } Intelij can not resolve…
0
votes
3 answers

Counting query in spring-data-couchbase (N1QL)

I'm writing couchbase repository using Spring module and I'm trying to add my own implementation of count method using N1QL query: public interface MyRepository extends CouchbaseRepository { @Query("SELECT count(*) FROM default") …
IgorekPotworek
  • 1,317
  • 13
  • 33
0
votes
1 answer

CouchBaseTemplate Connection issue

I have the Following CouchBase Template Bean: @PostConstruct public void initIt() throws Exception { if(couchbaseDisabled) return; couchbaseClient= new CouchbaseClient( bootstrapUris(Arrays.asList(hosts.split(","))), …
0
votes
2 answers

Couchbase Template Config Class

I have a Config class for Couchbase as follows: @Configuration @EnableCouchbaseRepositories public class CouchbaseConfig extends AbstractCouchbaseConfiguration{ @Value("${couchbase.serverList:127.0.0.1}") String…
0
votes
2 answers

In Couchbase, expired document included to query view list with NULL contents

Recently we started to use couchbase, We are using java spring-data-couchbase with Jersey to access couchbase. Accessing low level java-sdk-api we set expire time (TTL) to a particular document with the KEY(id). It's working fine. The code is as…
0
votes
1 answer

Can spring data couchbase be used to access reduced views

I know there is a way to access reduced view results using the Couchbase java sdk. What I am currently unable to do is use spring-data to access the reduced view. Is this possible? view: View byIdGetDateStats =…
DavidActualX
  • 55
  • 1
  • 5
0
votes
1 answer

Dropwizard spring data couchbase

I am building a project with Dropwizard, Couchbase and ElasticSearch. I am looking for a persistence layer like an ODM for Dropwizard and CouchBase. I looked over and found Spring-data-couchbase. Can I integrate DropWizard with Spring-data-couchbase…
jsphdnl
  • 415
  • 6
  • 21
0
votes
1 answer

How to set a bucket password with spring-data couchbase

I have followed the tutorial for spring-data couchbase and have a succesfull example project with unit tests for persisting a number of custom entities with a range of views implemented to query the entities. This works correctly in both a local dev…
0
votes
1 answer

spring-data-couchbase error while finding all documents with PageRequest

Using Spring Data Couchbase I created a very simple repository public interface UserDao extends PagingAndSortingRepository This should allow me to execute a paged findAll as follows: Page userResult = repo.findAll(new…
0
votes
0 answers

Couchbase client doesnt jump to next host on cluster

I am using Java Couchbase client version 1.4.6 We have couple of nodes for HA. Problem is that if one nodes go down the client doesnt try next ones and just keep trying the first one it succedded to connect(before it went down) Any idea how I can…
rayman
  • 20,786
  • 45
  • 148
  • 246
0
votes
1 answer

How to store dates in couchebase, using spring couchebase API

I have a JSON as below { "userName" : "FOOO", "createdDate" : "2014-10-16" } and i am using spring couche base API and created a bean as follows @Document public class MBean { @Id private String userName; @Field private java.util.Date …
Ravi Kiran Y
  • 181
  • 1
  • 2
  • 4
0
votes
1 answer

Using CouchbaseCacheManager and setting TTL

Is there a way to specify different TTL for different CouchbaseCache objects in CouchBaseCacheManager? @Cacheable("mycache") public List findMyObjectsById(long id) { return myrepo.findById(id); } How I make that List expire in cache…
vladsfl
  • 617
  • 8
  • 18
0
votes
1 answer

suppress log4j for couchbase messages

//Suppress(diasble) log4j for couchbase messages i need to use this file how to do it here true