MapStruct not picking up the expression conversion from a different mapper class
I came across a situation today where the Mapstruct was not picking the java expression conversion defined in the original mapper class, while converting a different type which uses the original class.
Mapstruct 1.5.5: Cannot use a @BeforeMapping method with @MappingTarget argument
My goal was to check the existence of a value, and give it to an attribute, if it exists, or something else if it doesn’t.