Alessandro Pieve 2016-07-20 12:31:41 +00:00
parent 212b3bcdbe
commit 85b0905dec
1 changed files with 1 additions and 2 deletions

View File

@ -136,8 +136,7 @@ public class PersistenceCouchBase extends PersistenceBackend {
}
protected JsonDocument createItem(JsonObject jsonObject, String id,String recordType) throws Exception {
logger.debug("insert a new record"+id);
protected JsonDocument createItem(JsonObject jsonObject, String id,String recordType) throws Exception {
JsonDocument doc = JsonDocument.create(id, jsonObject);
return connectionMap.get(recordType).upsert(doc);
}