Skip to content

Commit

Permalink
Version bump in pom. Change deprecated method.
Browse files Browse the repository at this point in the history
countAll is deprecated in morphia
  • Loading branch information
bihe committed Feb 25, 2017
1 parent e8a8d47 commit 9f70191
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@
.settings/
/target
/*.versionsBackup
*.iml
.idea/
6 changes: 3 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<ninjaframework.version>6.0.0-beta3</ninjaframework.version>
<morphia.version>1.3.1</morphia.version>
<morphia.version>1.3.2</morphia.version>
</properties>
<name>Ninja Framework MongoDB Module</name>
<description>
Expand Down Expand Up @@ -139,7 +139,7 @@
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>19.0</version>
<version>21.0</version>
</dependency>
<dependency>
<groupId>org.ninjaframework</groupId>
Expand All @@ -156,7 +156,7 @@
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-compress</artifactId>
<version>1.12</version>
<version>1.13</version>
<scope>test</scope>
</dependency>

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/net/binggl/ninja/mongodb/MongoDB.java
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ public <T extends Object> List<T> findAll(Class<T> clazz) {
public <T extends Object> long countAll(Class<T> clazz) {
Preconditions.checkNotNull(clazz, "Tryed to count all a morphia objects of a given object, but given object is null");

return this.datastore.find(clazz).countAll();
return this.datastore.find(clazz).count();
}

/**
Expand Down

0 comments on commit 9f70191

Please sign in to comment.