I have below Source and Target classes, i am using lombok for generating getters and setters
public class Target {
private String name;
private String newName;
}
public class Source {
private String name;
}
and let say if I want to map Source.name to Target.newName I am using below Mapper class with @Mapping to specify source and target variables.
but once i compile the code and check the generated ClassMapperImpl it is maping Source.name to Target.name and not to Target.new Name
@Mapper
public interface ClassMapper {
@Mapping(source = "name", target = "newName")
Target sourceToTarget(Source s);
}