mapstruct-idea
mapstruct-idea copied to clipboard
An IntelliJ IDEA plugin for working with MapStruct
just like #75 metioned. here's idea information: Runtime version: 17.0.10+1-b1087.17 amd64 VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o. Windows 11.0 GC: G1 Young Generation, G1 Old Generation Memory: 4096M...
Why reviewing PR #179 @hduelme pointed out that the Wrong usage of mappers factory does not work (i.e. it does not remove it) with the following code: ```java @Mapper(componentModel =...
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: ```java @Mapper public interface BeanMappingIgnoreTargetMapper { BeanMappingIgnoreTargetMapper INSTANCE...
When a `@Mapping(target = x)` is defined where x does not effectively exist, an error shall be reported. Example of code that does should raise an error : ``` @Mapper...
Hello, I've come across something quite peculiar that I'm not sure where it originated from.  The first one displays a string instead of being recognized as a Java expression....
I found while investigation #168, that currently the plugin ignores source parameters of type `array` and `Map`, if used as the only source parameter. Here a small example Mapper: ```java...
Example code: ```java @Mapper(unmappedTargetPolicy = ReportingPolicy.IGNORE, componentModel = MappingConstants.ComponentModel.SPRING) public interface VisitMapper { @Mapping(source = "assignedVetId", target = "assignedVet.id") @Mapping(source = "petId", target = "pet.id") Visit toEntity(VisitDto visitDto); @InheritInverseConfiguration(name =...
Currently we use a workaround, using a a tag version link to get the mockJDK `annotations.jar` since it was removed in the master branch. e.g.: https://github.com/JetBrains/intellij-community/raw/212.5712/java/mockJDK-11/jre/lib/annotations.jar instead of https://github.com/JetBrains/intellij-community/raw/master/java/mockJDK-11/jre/lib/annotations.jar Maybe...
When I use the `-Amapstruct.unmappedTargetPolicy=IGNORE` config in maven-compiler-plugin , `mapstruct-idea` don't understand this config, and the IDEA still throw warn msg 'Unmapped target properties'. pom.xml ```xml org.apache.maven.plugins maven-compiler-plugin true com.github.therapi...