DATACOUCH-573 - use same name for count in query

This commit is contained in:
mikereiche
2020-06-23 12:24:03 -07:00
parent 54d1a45b35
commit cd595995ed
2 changed files with 29 additions and 1 deletions

View File

@@ -22,6 +22,7 @@ import org.springframework.dao.QueryTimeoutException;
import org.springframework.dao.support.PersistenceExceptionTranslator;
import org.springframework.data.couchbase.core.CouchbaseExceptionTranslator;
import org.springframework.data.couchbase.core.OperationInterruptedException;
import org.springframework.data.couchbase.repository.query.CountFragment;
/**
* @author Subhashni Balakrishnan
@@ -31,7 +32,7 @@ import org.springframework.data.couchbase.core.OperationInterruptedException;
public class TemplateUtils {
public static final String SELECT_ID = "__id";
public static final String SELECT_CAS = "__cas";
public static final String SELECT_COUNT = "__count";
public static final String SELECT_COUNT = CountFragment.COUNT_ALIAS;
private static PersistenceExceptionTranslator exceptionTranslator = new CouchbaseExceptionTranslator();
public static Throwable translateError(Throwable e) {