Zegveld
Zegveld
What would be the expected code according to you? In my opinion mapstruct should throw a runtime exception in this case since we cannot instantiate an instance of the object...
Those 2 are only usable if there is an explicit type (eg. `class Concrete extends ChildEntity`) present. In your case that wouldn't be so I guess.
`@Mapper(uses = ...)` and `expression` or `defaultExpresison` are not compatible with each other. the `uses` directive will allow MapStruct to use anything listed there when handling mappings. For example when...
Could you test what it says if you would use `outside.inside` instead of `inside` in the `ignoreUnmappedSourceProperties`? Because you have 2 sources I believe that you need to also specify...
Here is the analysis: ### available method to use: ```java default Long mapAmount(BigDecimal amount) { return amount.movePointRight(2).longValue(); } ``` ### Reason As it is legal to assign a long to...
an improvement here would be to use ``` @Mapping(target = "data", constant = "VALUE_1") ``` The cause might be that this is a nested enum. There has been a change...
I've checked out the example repository and ran `mvn clean compile` with several java versions. Here are the results of how the code for the Mapper looks like. Java 17:...
because of `qualifiedBy`, mapstruct will attempt to map the `defaultValue` to a `String[]` and then call the `stringArrayToString` method with this. Since it cannot convert `""` to a `String[]` type...
Ahhh you're also using a Map-to-Bean mapping. There the `nullValuePropertyMappingStrategy` does not seem to work. Best work-around I have for now is to use an `@AfterMapping` or a `MyObject map(MyObject...
If I would transform this into java beans it would be something like: ```java class SourceClass{ private String foo; private String something; // getters/setters } class TargetClass { private String...