BrightSide Workbench Full Report + Source Code
VendorResults.java
Go to the documentation of this file.
1 package org.turro.crm.search;
2 
3 import org.turro.crm.db.CrmPU;
4 import org.turro.elephant.db.WhereClause;
5 import org.turro.jpa.Dao;
6 
11 public class VendorResults {
12 
13  public VendorResults() {
14  }
15 
16  public java.util.List getVendorList() {
17  Dao dao = new CrmPU();
18  WhereClause wc = new WhereClause();
19  wc.addClause("select distinct vendor from Vendor as vendor");
20  wc.addClause("order by vendor.name");
21  return dao.getResultList(wc);
22  }
23 
24 }