Exemplo n.º 1
0
 @Override
 public List<DivFtDtl> findByFactorNoAndRangeNos(String factorNo, String[] rangeNos) {
   ISearch search = createSearchTemplete();
   search.addSearchModeParameters(SearchMode.EQUALS, "factorNo", factorNo);
   search.addSearchModeParameters(SearchMode.EQUALS, "rangeNo", rangeNos);
   search.setFirstResult(0).setMaxResults(Integer.MAX_VALUE);
   search.addOrderBy("rangeNo");
   return find(search);
 }
Exemplo n.º 2
0
 @Override
 public DivFtDtl findByFactorNo(String factorNo) {
   ISearch search = createSearchTemplete();
   search.addSearchModeParameters(SearchMode.EQUALS, "factorNo", factorNo);
   return findUniqueOrNone(search);
 }