Save/Update like this?
This commit is contained in:
parent
5faf1a885e
commit
eb3fc18f65
@ -148,8 +148,9 @@ public class DriverMongo extends DriverAbstract
|
||||
BasicDBObject dbo = MongoGsonConverter.gson2MongoObject(data);
|
||||
Long mtime = System.currentTimeMillis();
|
||||
dbo.put(MTIME_FIELD, mtime);
|
||||
dbo.put(ID_FIELD, id);
|
||||
|
||||
dbcoll.update(new BasicDBObject(ID_FIELD, id), dbo, true, false);
|
||||
dbcoll.save(dbo);
|
||||
|
||||
return mtime;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user