Adapter method will not be generated for below converter even though `mapstruct` able generate the implementation class.
Chessray opened this issue · comments
Raimund Klein commented
Adapter method will not be generated for below converter even though `mapstruct` able generate the implementation class.
@Mapper(config = MapperConfiguration.class)
interface MyConverter extends Converter<Foo, FooDto> {
}
To be able to generate the method for adapter class, have to declare convert
method again as below.
@Mapper(config = MapperConfiguration.class)
interface MyConverter extends Converter<Foo, FooDto> {
FooDto convert(Foo source);
}
Originally posted by @myatmin in #53 (comment)