Skip to content

Mapping a Bean to Map<String,Object> #2504

@amaan75

Description

@amaan75

Can Mapstruct map a bean to a map<String,Object>
i am thinking along the lines of
Map<String,Object> convertToMap(SomePojo Bean);
all the fields become the string key, value is the value in the map but as an object :).
If this is doable with the current map struct then how about updating the reference guide and adding an example,
I can help with both.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions