public
@ResponseBody
AjaxResponse<Object> update(@RequestBody() Developer developer) {
final AjaxResponse<Object> response = new AjaxResponse<Object>();
try {
Developer managed =Developer.findDeveloper(developer.getId());
BeanUtils.copyProperties(developer,managed,new String[]{"id","version","projects"});
managed.merge();
} catch (Exception e) {
e.printStackTrace();
response.setSuccess("false");
}
return response;