Permalink
Browse files

do not restrict the toDb method to types of the dao

  • Loading branch information...
1 parent def4ba5 commit 56d46d2cf69c6067acaeedab332833be0155fe5a @hofmeister committed Feb 9, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 modules/webi-mongo/src/main/java/com/vonhof/webi/mongo/dao/AbstractDAO.java
View
2 modules/webi-mongo/src/main/java/com/vonhof/webi/mongo/dao/AbstractDAO.java
@@ -78,7 +78,7 @@ public DBCollection coll() {
return collection;
}
- protected BasicDBObject toDb(T doc) {
+ protected BasicDBObject toDb(Object doc) {
try {
return bs.convert(doc, BasicDBObject.class);
} catch (MappingException ex) {

0 comments on commit 56d46d2

Please sign in to comment.