mapstruct-idea
mapstruct-idea copied to clipboard
IDE Support of `BeanMapping#ignoredTargets`
When the following PR of https://github.com/mapstruct/mapstruct/issues/3539 is merged:
- https://github.com/mapstruct/mapstruct/pull/3545
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 );
}