mapstruct / mapstruct-spring-extensions

Helpful additions to MapStruct when using the Spring Framework.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Adapter method will not be generated for below converter even though `mapstruct` able generate the implementation class.

Chessray opened this issue · comments

    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)