Skip to content

Commit

Permalink
added _rev mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
Sukein Alex authored and Sukein Alex committed Oct 10, 2016
1 parent bce6432 commit e808326
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ private <T> List<T> convertToDataList(List<LinkedHashMap> queriedList, Class<T>
.map(hashMap -> {
LinkedHashMap data = (LinkedHashMap) hashMap.get("data");
data.put("_id", hashMap.get("id"));
data.put("_rev", ((LinkedHashMap) data.get("_sync")).get("rev"));
return objectMapper.convertValue(data, clazz);
})
.collect(Collectors.toList());
Expand Down

0 comments on commit e808326

Please sign in to comment.