public SalesPointVO toVO(SalesPoint entity) { if (entity == null) { return null; } SalesPointVO rv = new SalesPointVO(); try { rv.setAddress(adConverter.toVO(addressDao.findAddressByAddressId(entity.getAdressId()))); } catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace(); } rv.setSalePointPhoneNumber(entity.getSalePointPhoneNumber()); rv.setId(entity.getId()); rv.setSalePointId(entity.getSalePointId()); rv.setName(entity.getName()); try { rv.setWarehouse( whConverter.toVO(warehouseDao.findWarehouseByWarehouseId(entity.getWarehouseId()))); } catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace(); } return rv; }