EntityLovModel.Builder<Departments> builder =
new EntityLovModel.Builder<Departments>(Departments.class,
"java:comp/env/ejb/local/HRSessionBean",
HRSessionLocal.class);
lovDepartments =
builder.add(new FieldDef("departmentId").columnWidth(30).key())
.add(new FieldDef("departmentName").columnWidth(100))
.add(new FieldDef("locationId").columnWidth(30))
// .add(new FieldDef("locationId").singleSelect("locationsFindAll","locationId","city"))
.returnKey().build();
}
return lovDepartments;