MyDTO.orderId is currently mapping to MyVO.id and MyVO.orderID.id but I don't want it to map to anything. I've added this code but it only stops the mapping to MyVO.id. Is there a way to stop the mapping to MyVO.orderID.id as well? (I know the variable names are unfortunate but please ignore that for the moment...)
modelMapper.typeMap(MyDTO.class, MyVO.class).addMappings(mapper -> {
mapper.skip(MyVO::setId);
mapper.skip(MyVO::setOrderID);
});
Thanks in advance!