Use @DecoratedWith in a @MapperConfig interface/class

148 views
Skip to first unread message

andrea.be...@gmail.com

unread,
Apr 8, 2021, 8:36:43 AM4/8/21
to mapstruct-users

As described in the reference guide, is possible to define a shared configuration, so all mappers that use this configuration, will map theirs commons/generics fields as indicated in the configuration.

But, is it possible to decore this @MapperConfig? Is it possible to apply the @DecoratedWith annotation to a @MapperConfig interface/class? In this attached example, how can I decore the anyDtoToEntity method (and inherit the decore in all mappers)?

Immagine 2021-04-08 143556.png
Reply all
Reply to author
Forward
0 new messages