Add Support for More Flexible ObjectMapper Configuration#25
Add Support for More Flexible ObjectMapper Configuration#25apjoseph wants to merge 2 commits intoHubSpot:masterfrom
Conversation
|
Hey Andrew, thanks for the PR! To make sure I understand, what was the thinking behind having separate objectmapper for mapping and binding? I just want to make sure we strike the right balance of configurability vs. complexity |
|
Since serialization happens both during binding and mapping, distinct serializers for the same type may be necessary for mapping and binding. An example of such a case would be For the basic use case, one Ideally, Jackson ObjectMappers would have a mechanism for registering context dependent serializers/deserializers so that one mapper could be used in all instances -but sadly Jackson has no such functionality. It is not even possible to deserialize using custom mixins without cloning the ObjectMapper; as a result, each distinct set of mixins requires a new object mapper. Even if Jackson did support context dependent configuration, it would certainly not be backwards compatible with older versions of 2.x. |
…ibleObjectMapperConfiguration
Adds the following
RosettaJDBIBinderfor usage withSQLStatement<?>s (example usage here)