示例#1
0
 @Override
 public boolean delete(Long id) {
   contRepository.delete(id);
   return true;
 }
示例#2
0
 @Override
 public List<Contribution> findAllConts() {
   return contRepository.findAll();
 }
示例#3
0
 @Override
 public Contribution getOneCont(Long id) {
   return contRepository.getOne(id);
 }
示例#4
0
 @Override
 public Contribution addNewCont(Contribution contribution) {
   Contribution newCont = contRepository.save(contribution);
   return newCont;
 }