Usage example:
{@code Listresult = query.from(employee).list(new QTuple(employee.firstName, employee.lastName));}for (Tuple row : result) System.out.println("firstName " + row.get(employee.firstName)); System.out.println("lastName " + row.get(employee.lastName)); }}
Since Tuple projection is the default for multi column projections, the above is equivalent to this code
{@code List@author tiweresult = query.from(employee).list(employee.firstName, employee.lastName);}for (Tuple row : result) System.out.println("firstName " + row.get(employee.firstName)); System.out.println("lastName " + row.get(employee.lastName)); }}
|
|
|
|
|
|
|
|
|
|
|
|
|
|