Created
April 8, 2011 06:29
-
-
Save anonymous/909394 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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