I would like to map between UserDTO and User, but excluding one field, say city. How can I do that, cause I though that this approach
UserDTO
User
city
Because of the generic parameters, we couldn't use the lambda expression.
ModelMapper modelMapper = new ModelMapper(); modelMapper.addMappings(new PropertyMap() { @Override protected void configure() { skip(destination.getBlessedField()); } });