예제 #1
0
 public boolean saveOrUpdate(Supplier supplier) {
   // TODO Auto-generated method stub
   try {
     dao.saveOrUpdate(supplier);
     return true;
   } catch (Exception e) {
     return false;
   }
 }
예제 #2
0
 public boolean deleteSupplierByid(String supplierid) {
   // TODO Auto-generated method stub
   int id = Integer.parseInt(supplierid);
   try {
     dao.delById(Supplier.class, id);
     ;
     return true;
   } catch (Exception e) {
     return false;
   }
 }
예제 #3
0
 public Supplier findSupplierByid(String supplierid) {
   // TODO Auto-generated method stub
   int id = Integer.parseInt(supplierid);
   return (Supplier) dao.loadById(Supplier.class, id);
 }