MapStruct support for IntelliJ IDEA
Website |GitHub |Issue Tracker |
This plugin gives some assistance in projects that use MapStruct to generate bean mapping code.
MapStruct is a Java annotation processor for the generation of type-safe and performant mappers for Java bean classes.
If you want to discuss specific topics, then ping me (@filiphr) in the MapStruct userschat room on gitter.
Features:
target
and source
properties in @Mapping
annotation (nested properties also work)target
and source
properties in @ValueMapping
annotationcomponentModel
in @Mapper
and @MapperConfig
annotationsqualifiedByName
in @Mapping
annotationtarget
and source
to setters / getterstarget
and source
and find usages of setters / getters in @Mapping
annotationsMapping#qualifiedByName
target
and source
@Mapper
or @MapperConfig
annotation missingunmappedTargetPolicy
to determine the severity that should be usedsource
defined in @Mapping
annotationsource
in @Mapping
annotation defined with quick fixes: Remove source
. Remove constant
. Remove expression
. Use constant
as defaultValue
. Use expression
as defaultExpression
.@Mapping
annotation defined with quick fixes: Remove defaultValue
. Remove defaultExpression
.target
mapped more than once by @Mapping
annotations with quick fixes: Remove annotation and change target property.
used as a source in @Mapping
annotations with quick fixes: Replace
with method parameter name.