Having entity with java.sql.Timestamp field annotated with @JsonFormat.
When creating new one using POST the custom format is recognised and used.
When doing partial update using PATCH, Content-type: application/json-patch+json the update fails with:
...
"message":"Timestamp format must be yyyy-mm-dd hh:mm:ss[.fffffffff]"}
When parsing the value update falls back to Timestamp.valueOf(...) and ignores the @JsonFormat
Jan Zyka opened DATAREST-1214 and commented
Having entity with
java.sql.Timestamp
field annotated with@JsonFormat
.When creating new one using
POST
the custom format is recognised and used.When doing partial update using
PATCH, Content-type: application/json-patch+json
the update fails with:When parsing the value update falls back to
Timestamp.valueOf(...)
and ignores the@JsonFormat
Affects: 2.6.10 (Ingalls SR10), 3.0.5 (Kay SR5)
Reference URL: https://github.com/janzyka/spring-json-patch
The text was updated successfully, but these errors were encountered: