@Test public void should_handle_isNew_onJsonNode() { ObjectMapper om = new ObjectMapper(); ObjectNode onode = om.createObjectNode(); onode.put("_id", "jsonNode_id"); onode.put("otherField", "otherValue"); assertTrue(Documents.isNew(onode)); }
public static boolean isNew(Object document) { return getRevision(document) == null; }
Documents { public static boolean isNew(Object document) { return getRevision(document) == null; } }
Documents { public static boolean isNew(Object document) { return getRevision(document) == null; }  }
Documents { public static boolean isNew(Object document) { return getRevision(document) == null; }  static void registerAccessor(Class<?> documentType, DocumentAccessor accessor); static String getId(Object document); static void setId(Object document, String id); static String getRevision(Object document); static void setRevision(Object document, String rev); static boolean isNew(Object document); }
Documents { public static boolean isNew(Object document) { return getRevision(document) == null; }  static void registerAccessor(Class<?> documentType, DocumentAccessor accessor); static String getId(Object document); static void setId(Object document, String id); static String getRevision(Object document); static void setRevision(Object document, String rev); static boolean isNew(Object document);  }