mapstruct / mapstruct-idea

An IntelliJ IDEA plugin for working with MapStruct
Other
141 stars 38 forks source link

IDE Support of `BeanMapping#ignoredTargets` #181

Open thunderhook opened 7 months ago

thunderhook commented 7 months ago

When the following PR of https://github.com/mapstruct/mapstruct/issues/3539 is merged:

we can also add a support for this kind of ignore list:

@Mapper
public interface BeanMappingIgnoreTargetMapper {

    BeanMappingIgnoreTargetMapper INSTANCE =
            Mappers.getMapper( BeanMappingIgnoreTargetMapper.class );

    @BeanMapping( ignoreTargets = {"nested.flag", "address"} )
    Target convert( Source source );
}