I would like to map from DTO to Entity. For that I use MapStruct. I would like to perform all String fields both on null check and emptycheck like:
if(name != null && !name.isEmpty()) {...} or much better if
(StringUtils.isNotBlank(name)) {...}
I have seen that in MapperConfig we can configure the null check with:
nullValueCheckStrategy = NullValueCheckStrategy.ALWAYS
Is it possible to configure the empty check?