if(id==null)
{
result.setFailed(FITTING_ID_IS_NULL);
return result;
}
Fitting fitting = fittingDAO.findById(id);
if(fitting==null)
{
result.setFailed(FITTING_NOT_EXIST,id);
return result;
}
try{
BeanUtils.populate(fitting, properties);
fittingDAO.merge(fitting);
result.setSucceed(FITTING_MODIFY_SUCCED,fitting.getName());
}
catch (IllegalAccessException e)
{
// TODO Auto-generated catch block
e.printStackTrace();