Permalink
Browse files

Modified delete of collection contents to use Person.class instead of…

… a String with the collection name
  • Loading branch information...
1 parent dc20f33 commit 8895d9f6fab55ed49c7b1e7191e67cae12f06462 @trisberg trisberg committed Feb 2, 2012
View
2 hello-spring-mongodb/src/main/java/org/cloudfoundry/services/HomeController.java
@@ -119,7 +119,7 @@ public Long doInCollection(DBCollection collection)
}
});
out.println("Deleted " + count + " entries");
- mongoTemplate.dropCollection("Person");
+ mongoTemplate.dropCollection(Person.class);
}
}

0 comments on commit 8895d9f

Please sign in to comment.