if(name==null||name=="")
{
result.setFailed(RESOURCE_CATEGORY_NAME_IS_NULL);
return result;
}
ResourceCategory category = new ResourceCategory();
try{
BeanUtils.populate(category, properties);
category.setId(MyUUIDGen.getUUID());
resourceCategoryDAO.merge(category);
result.setSucceed(category.getId());
}
catch(Exception e)
{
e.printStackTrace();
result.setFailed(e.getMessage());