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 suggest as an improvement, be able to perform the deserialization of a pre-existing object, considered the fields that are collections, where it was possible to define a key to the collection object, and it was still possible to pass a specific comparator for the type of collection, and with this key pattern was possible to recover the existing record in the collection and deserialize the existing record, instead of adding a new record in the collection, or have the ability to set an interceptor to carry out this work to find the record and return to be used by CollectionDeserializer.
At the moment I decided this scenario creating a specialization of ColletionDeserializer class, overwriting and replicating code, which in each Jackson version update will have to revise the code to keep compativilidade, and recording it as specific deserializer collections through the module confguration by setting one BeanDeserializerModifier.
I suggest as an improvement, be able to perform the deserialization of a pre-existing object, considered the fields that are collections, where it was possible to define a key to the collection object, and it was still possible to pass a specific comparator for the type of collection, and with this key pattern was possible to recover the existing record in the collection and deserialize the existing record, instead of adding a new record in the collection, or have the ability to set an interceptor to carry out this work to find the record and return to be used by CollectionDeserializer.
At the moment I decided this scenario creating a specialization of ColletionDeserializer class, overwriting and replicating code, which in each Jackson version update will have to revise the code to keep compativilidade, and recording it as specific deserializer collections through the module confguration by setting one BeanDeserializerModifier.
Thanks for your help.
The text was updated successfully, but these errors were encountered: