Hello,
I try to use selma to map 2 POJO and I give this error :
HubMapperSelmaGeneratedClass.java:[20,25] incompatible types: <nulltype> cannot be converted to long
My source POJO have few fields int and string, one Date and 2 Map<String, Date>.
My destination POJO have fields int and string, one Long and 2 Map<String, Long>.
The fields are exactly the same name.
@Mapper(withCustom = DateMapper.class)
public interface PojoMapper {
POJODest asPOJODest(POJOSrc src);
}
and
public class DateMapper {
public Long dateAsLong(Date date) {
return date.getTime();
}
public Date longAsDate(Long timestamp) {
return new Date(timestamp);
}
}
In compile time, I get the message
HubMapperSelmaGeneratedClass.java:[20,25] incompatible types: <nulltype> cannot be converted to long
I try with ignoreNotSupported = true and with withIgnoreMissing = IgnoreMissing.ALL and I have always the same result.
Can you help me to fix it ?