public EmployeeListPage() {
}
@Override
public void preRenderViewAction() {
SampleDB sampleDB = FacesUtils.getDatabase();
DBColumnExpr C_FULL_NAME = sampleDB.T_EMPLOYEES.C_LAST_NAME.append(", ")
.append(sampleDB.T_EMPLOYEES.C_FIRST_NAME).as("NAME");
DBColumnExpr C_DEPARTMENT = sampleDB.T_DEPARTMENTS.C_NAME
.as("DEPARTMENT");
// lade Liste aus der Datenbank
SampleDB.Employees EMP = sampleDB.T_EMPLOYEES;
SampleDB.Departments DEP = sampleDB.T_DEPARTMENTS;
DBCommand cmd = sampleDB.createCommand();
cmd.select(EMP.C_EMPLOYEE_ID);
cmd.select(C_FULL_NAME, EMP.C_GENDER, EMP.C_DATE_OF_BIRTH);
cmd.select(C_DEPARTMENT);
cmd.join(DEP.C_DEPARTMENT_ID, EMP.C_DEPARTMENT_ID);