Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
QEmployee qEmployee = QEmployee.employee;
List<Employee> emps = sqlQuery.from(qEmployee)
.where(qEmployee.name.eq(name))
.list(new QBean<Employee>(Employee.class, qEmployee.id, qEmployee.name));
// QBean defines a Bean populating projection, the first argument is the Bean class and the rest the paths to be used for Bean population
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.