Hi,
It would be nice if ObjectMapper had also support for mapping Java Records out of the box. Currently I've created a RecordMapper by implementing the Mapper interface, but this is cumbersome since I have to create multiple RecordMapper instances for each record I have.
I think with a small change to ObjectMapper this could be accomplished easily (class.isRecord() => mapRecord). And also the Map<Class, Mappers> is not very useful, since I need to add multiple RecordMappers for each type and this is not efficient.
I can share my mapper if you want.
Thx in advance.
Hi,
It would be nice if ObjectMapper had also support for mapping Java Records out of the box. Currently I've created a RecordMapper by implementing the Mapper interface, but this is cumbersome since I have to create multiple RecordMapper instances for each record I have.
I think with a small change to ObjectMapper this could be accomplished easily (class.isRecord() => mapRecord). And also the Map<Class, Mappers> is not very useful, since I need to add multiple RecordMappers for each type and this is not efficient.
I can share my mapper if you want.
Thx in advance.