Open Yuri-Harel opened 4 years ago
There is a new feature that can enable by calling enableSpeculativePropertyLookupOnObject() on the Mapper factory that will enable speculative lookup on object
https://simpleflatmapper.org/2019/11/14/v8.2.1.html
so the field street should in your case endup in address.street
could you try that on the last version 8.2.1?
I have a case where a stored procedure written by bad people returns 40 fields. I would like to map these fields to a more complex type. An example for the feautre I'm looking for : If I get a ResultSet with fields : id, street, city, I would like the following to map correctly :
I reference @JsonUnwrapped since this is how Jackson does it for JSON. If there is another way, please advice. I know I can just add an alias for each field, but that is a bit obtuse for the reader of the code.