mapstruct / mapstruct-examples

Examples for using MapStruct
Other
1.28k stars 512 forks source link

Is is possible to use configuration files [json,xml] to describe the mapping relation between fields? #87

Closed murisans closed 4 years ago

filiphr commented 4 years ago

Please use our Gitter Room or StackOverflow to ask questions. The issue tracker should not be used for asking questions.

To answer the question, no it is not possible. MapStruct is an annotation processor, which means, that it generates code during the compilation phase of project. You can however, write your own build plugins to achieve json / xml description that will generate the MapStruct mappers, and then our annotation processor will use that