Enter code here...import lombok.AllArgsConstructor;
import lombok.Getter;
@Getter
@AllArgsConstructor
public class ValidationFieldDetails {
private final String field;
private final String message;
}
but MapStruct will look for a parameterless method, or a method with only one @TargetType parameter that returns the required target type and invoke this method instead of calling the default constructor. So I failed to use my constructor
public class ValidationFieldDetailsMapperFactory {
public ValidationFieldDetails fakeConstructorToCheatDefaultConstructor(){
return null;
}
Enter code here...