Skip to content

Add Java Record mapping #97

Description

@Serkan80

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions