You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a Dictionary entity bean contain fields like "dictCode" and "dictValue". then define a DTO class contain fields like "code" and "value" . finally register a customer Module to serializer
everything is ok in get post and put method , bug in patch method request . the JsonNode always return EmptyJson ("{}")
I try to debug and find the doMerge method on the DomainObjectReader will remove the DTO fields becasue mappedProperties.isWritableProperty return false .
We're having the same problem with jackson-datatype-money and the MonetaryAmountDeserializer, after upgrading Spring Boot to 2.5.8.
The MonetaryAmountDeserializer deserializes "amount" and "currency" from JSON, but the MappedProperties only knows about number and currency, so mappedProperties.isWritableProperty(fieldName) returns false for "amount" and it is removed in DomainObjectReader.doMerge and never passed to the MonetaryAmountDeserializer.
huisezhiwei opened DATAREST-1566 and commented
I have a Dictionary entity bean contain fields like "dictCode" and "dictValue". then define a DTO class contain fields like "code" and "value" . finally register a customer Module to serializer
everything is ok in get post and put method , bug in patch method request . the JsonNode always return EmptyJson ("{}")
I try to debug and find the doMerge method on the DomainObjectReader will remove the DTO fields becasue mappedProperties.isWritableProperty return false .
No further details from DATAREST-1566
The text was updated successfully, but these errors were encountered: