Skip to content

Commit 83c4861

Browse files
Jaydeep KumbhaniPavan Rangani
authored andcommitted
bug fixed reduce false when includeDoc true and updated.
1 parent b822c0d commit 83c4861

File tree

4 files changed

+17
-1
lines changed

4 files changed

+17
-1
lines changed

org.ektorp/pom.xml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,4 +93,15 @@
9393
<artifactId>jackson-databind</artifactId>
9494
</dependency>
9595
</dependencies>
96+
97+
<distributionManagement>
98+
<repository>
99+
<id>nexus3-releases</id>
100+
<url>http://nexus3.dreamworld.solutions:8081/repository/maven-releases</url>
101+
</repository>
102+
<snapshotRepository>
103+
<id>nexus3-snapshots</id>
104+
<url>http://nexus3.dreamworld.solutions:8081/repository/maven-snapshots</url>
105+
</snapshotRepository>
106+
</distributionManagement>
96107
</project>

org.ektorp/src/main/java/org/ektorp/support/CouchDbRepositorySupport.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,7 @@ protected ViewQuery createQuery(String viewName) {
208208
*/
209209
protected List<T> queryView(String viewName, String key) {
210210
return db.queryView(createQuery(viewName)
211+
.reduce(false)
211212
.includeDocs(true)
212213
.key(key),
213214
type);
@@ -224,6 +225,7 @@ protected List<T> queryView(String viewName, String key) {
224225
*/
225226
protected List<T> queryView(String viewName, int key) {
226227
return db.queryView(createQuery(viewName)
228+
.reduce(false)
227229
.includeDocs(true)
228230
.key(key),
229231
type);
@@ -240,6 +242,7 @@ protected List<T> queryView(String viewName, int key) {
240242
*/
241243
protected List<T> queryView(String viewName, ComplexKey key) {
242244
return db.queryView(createQuery(viewName)
245+
.reduce(false)
243246
.includeDocs(true)
244247
.key(key),
245248
type);
@@ -254,6 +257,7 @@ protected List<T> queryView(String viewName, ComplexKey key) {
254257
*/
255258
protected List<T> queryView(String viewName) {
256259
return db.queryView(createQuery(viewName)
260+
.reduce(false)
257261
.includeDocs(true),
258262
type);
259263
}

org.ektorp/src/test/java/org/ektorp/support/CouchDbRepositorySupportTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ public void given_that_all_view_exists_when_calling_getAll_then_it_should_be_que
8585
.dbPath("test")
8686
.designDocId("_design/TestDoc")
8787
.includeDocs(true)
88+
.reduce(false)
8889
.viewName("all");
8990

9091
ViewQuery created = ac.getValue();

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
<mockito.version>1.8.5</mockito.version>
5757
<junit.version>4.8.2</junit.version>
5858
<joda.time.version>2.3</joda.time.version>
59-
<jackson.version>2.6.7</jackson.version>
59+
<jackson.version>2.10.2</jackson.version>
6060
<spring.version>3.1.1.RELEASE</spring.version>
6161
<commons.io.version>2.0.1</commons.io.version>
6262
<httpclient.version>4.3</httpclient.version>

0 commit comments

Comments
 (0)