18 package org.turro.erp.humanres;
20 import java.util.LinkedList;
21 import java.util.List;
22 import javax.persistence.EntityManager;
23 import javax.persistence.Query;
24 import org.turro.elephant.db.SQLHelper;
25 import org.turro.elephant.db.WhereClause;
26 import org.turro.erp.db.ErpPU;
27 import org.turro.erp.entity.OwnedAptitude;
28 import org.turro.zkoss.input.GenericCombobox;
36 private boolean onlyActive =
true;
43 this.onlyActive = onlyActive;
47 public void populateList(String value, LinkedList list,
int nRows) {
51 "res.humanResource.name"
53 Query q = em.createQuery(
54 "select res from OwnedAptitude res " +
55 "where res.humanResource.active = :active " +
57 " order by res.humanResource.name"
60 q.setMaxResults(nRows);
62 List<OwnedAptitude> l = q.getResultList();
static WhereClause getWhereClause(String[] fields, String value)
void setNamedParameters(Query q)
void addNamedValue(String name, Object value)
String getTextFromObject(OwnedAptitude value)
void populateList(String value, LinkedList list, int nRows)
void setOnlyActive(boolean onlyActive)
EntityManager getEntityManager()