I want to use ModelMapper to convert entity to DTO and back. Mostly it works, but how do I customize it. It has has so many options that it\'s hard to figure out where to st
import org.modelmapper.ModelMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Service
public class EntityDtoConversionUtil {
@Autowired
private ModelMapper modelMapper;
public Object convert(Object object,Class> type) {
Object MapperObject=modelMapper.map(object, type);
return MapperObject;
}
}