@Override public boolean hasCreatorAnnotation(Annotated a) { /* No dedicated disabling; regular @JsonIgnore used * if needs to be ignored (and if so, is handled prior * to this method getting called) */ return a.hasAnnotation(JsonCreator.class); }
@Override public boolean hasCreatorAnnotation(Annotated a) { /* No dedicated disabling; regular @JsonIgnore used * if needs to be ignored (and if so, is handled prior * to this method getting called) */ return a.hasAnnotation(JsonCreator.class); }
@Override public boolean hasCreatorAnnotation(Annotated a) { /* No dedicated disabling; regular @JsonIgnore used * if needs to be ignored (and if so, is handled prior * to this method getting called) */ return a.hasAnnotation(JsonCreator.class); }
@Override public Object findSerializer(Annotated am) { if (am.hasAnnotation(ObjectId.class)) { return ObjectIdSerializer.class; } return null; }
private String findPropertyName(Annotated annotated) { if (annotated.hasAnnotation(Id.class) || annotated.hasAnnotation(javax.persistence.Id.class)) { return "_id"; } return null; }
@Override public boolean hasCreatorAnnotation(Annotated a) { /* No dedicated disabling; regular @JsonIgnore used * if needs to be ignored (and if so, is handled prior * to this method getting called) */ return a.hasAnnotation(JsonCreator.class); }
@Override public boolean hasCreatorAnnotation(Annotated a) { /* No dedicated disabling; regular @JsonIgnore used * if needs to be ignored (and if so, is handled prior * to this method getting called) */ return a.hasAnnotation(JsonCreator.class); }
@Override public boolean hasCreatorAnnotation(Annotated a) { /* No dedicated disabling; regular @JsonIgnore used * if needs to be ignored (and if so, is handled prior * to this method getting called) */ return a.hasAnnotation(JsonCreator.class); }
private String findPropertyName(Annotated annotated) { if (annotated.hasAnnotation(Id.class) || annotated.hasAnnotation(javax.persistence.Id.class)) { return "_id"; } return null; }
@Override public Object findSerializer(Annotated am) { if (am.hasAnnotation(ObjectId.class)) { return ObjectIdSerializer.class; } return null; }
@Override public Object findDeserializer(Annotated am) { if (am.hasAnnotation(ObjectId.class)) { return findObjectIdDeserializer(deserializationConfig.getTypeFactory().constructType(am.getGenericType())); } return null; }
@Override public Object findDeserializer(Annotated am) { if (am.hasAnnotation(ObjectId.class)) { return findObjectIdDeserializer(deserializationConfig.getTypeFactory().constructType(am.getGenericType())); } return null; }
@Override public Class findContentDeserializer(Annotated am) { if (am.hasAnnotation(ObjectId.class)) { JavaType type = deserializationConfig.getTypeFactory().constructType(am.getGenericType()); if (type.isCollectionLikeType()) { return findObjectIdDeserializer(type.containedType(0)); } else if (type.isMapLikeType()) { return findObjectIdDeserializer(type.containedType(1)); } } return null; }
@Override public Class findContentDeserializer(Annotated am) { if (am.hasAnnotation(ObjectId.class)) { JavaType type = deserializationConfig.getTypeFactory().constructType(am.getGenericType()); if (type.isCollectionLikeType()) { return findObjectIdDeserializer(type.containedType(0)); } else if (type.isMapLikeType()) { return findObjectIdDeserializer(type.containedType(1)); } } return null; }