Example #1
0
 @Override
 public <V> ModelCarType find(V id) {
   // TODO Auto-generated method stub
   ModelCarType t = super.find(id);
   ModelChargeStandard chargeStandard = iServChargeStandard.find(t.getChargeStandardId());
   t.setChargeStandard(chargeStandard);
   ModelFileUpload icon = iServFileUpload.find(t.getIconId());
   t.setIcon(icon);
   return t;
 }
Example #2
0
 @Override
 public List<ModelCarType> findByCondition(Condition<ModelCarType> condition, boolean injected) {
   List<ModelCarType> list = findByCondition(condition);
   if (list != null && injected) {
     for (ModelCarType t : list) {
       ModelChargeStandard chargeStandard = iServChargeStandard.find(t.getChargeStandardId());
       t.setChargeStandard(chargeStandard);
       ModelFileUpload icon = iServFileUpload.find(t.getIconId());
       t.setIcon(icon);
     }
   }
   return list;
 }