@Lukas,
In fact, we use fetchInto() to convert the results to a list of objects.
For instance:
Employee The pojo mapping database table is an employee.
List<Employee> employeeList = sql.select(Tables.Employee) .from(Tables.EMPLOYEE).fetchInto(Employee.class);
similarly, how can we convert the records we retrieve using joins?
For instance:
Customer Pojo Customer . Compliance database table.
Employee pojo mapping database table.
sql.select(<<IWantAllFields>>).from(Tables.CUSTOMER) .join(Tables.EMPLOYEE) .on(Tables.EMPLOYEE.ID.equal(Tables.CUSTOMER.EMPLOYEE_ID)) .fetchInto(?);
source share