예제 #1
0
 @Override
 public List<AnnualBudget> listAll() {
   return budgetRepository.findAll();
 }
예제 #2
0
 @Override
 @Transactional
 public void saveOrUpdate(AnnualBudget budget, Long teamId) {
   budget.setTeam(teamRepository.findOne(teamId));
   budgetRepository.save(budget);
 }