I have a simple MapStruct class:
@Mapper
public interface SomeMapper {
SomeDto map(SomeModel someModel);
SomeModel map(SomeDto someDto);
}
The problem is, my SomeModel is using a Builder but without a static method, i.e.
class SomeModel {
public static class Builder {
}
// there is no public static Builder builder() method available
}
How do I tell MapStruct that it needs to directly use the new SomeModel.Builder() instead of SomeModel.builder()?