Skip to content

Commit

Permalink
bugfix object serialization
Browse files Browse the repository at this point in the history
  • Loading branch information
sboesebeck committed Jan 19, 2015
1 parent 57dffdb commit ee1d74d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/de/caluga/morphium/ObjectMapperImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ public ObjectMapperImpl() {
mongoTypes.add(Integer.class);
mongoTypes.add(Long.class);
mongoTypes.add(Float.class);
mongoTypes.add(Double.class);
mongoTypes.add(Date.class);
mongoTypes.add(Boolean.class);
mongoTypes.add(Byte.class);
Expand Down
3 changes: 3 additions & 0 deletions src/de/caluga/morphium/writer/MorphiumWriterImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -600,6 +600,9 @@ private void createCappedColl(Class c) {
cmd.put("capped", true);
cmd.put("size", capped.maxSize());
cmd.put("max", capped.maxEntries());
} else {
logger.warn("cannot cap collection for class " + c.getName() + " not @Capped");
return;
}
cmd.put("autoIndexId", (morphium.getARHelper().getIdField(c).getType().equals(ObjectId.class)));
morphium.getDatabase().command(cmd);
Expand Down

0 comments on commit ee1d74d

Please sign in to comment.