MapStruct – Easy & fast way to map Java beans
import org.mapstruct.Mapper; import org.mapstruct.Mapping; import org.mapstruct.factory.Mappers; class Employee { Employee(int id, String name, String email) { this.id = id; this.employeeName = name; this.email = email; } private int id; private String employeeName; private String email; public int getId() { return id; } public void setId(int id) { this.id = id; } public String getEmployeeName() { … Read more