@RequestMapping(value = "/update", method = RequestMethod.POST)
public @ResponseBody Boolean update(long id, double value) {
CategoryBudget budget = getBudget(id);
if (budget != null) {
budget.setExpectedAmount(new BigDecimal(value));
budget.merge();
}
return budget != null && budget.getExpectedAmount().doubleValue() == value;
}
@RequestMapping(value = "/delete", method = RequestMethod.POST)