categoryBudget.setExpectedAmount(new BigDecimal(amount));
MonthlyBudget monthlyBudget = obtainMonthlyBudget(user, month);
categoryBudget.setMonthlyBudget(monthlyBudget);
categoryBudget.persist();
monthlyBudget.getBudgets().add(categoryBudget);
monthlyBudget.merge();
}
protected MonthlyBudget obtainMonthlyBudget(UserDetails user, int month) {
return user.getBudget().getMonthlyBudget(month);
}