예제 #1
0
 public void editAction(Action action) { // редактировать
   //        action.setAction(actionName);
   //        action.setDate(date);
   //        action.setIsMade(isMade);
   //        action.setNote(note);
   actionRepository.save(action);
 }
예제 #2
0
 public Page<Action> findAll(Pageable pegable) {
   Page<Action> actionPage = actionRepository.findAll(pegable);
   return actionPage;
 }
예제 #3
0
 public Page<Action> findByIsMade(Pageable pegable, Boolean isMade) {
   Page<Action> actionPage = actionRepository.findByIsMade(pegable, isMade);
   return actionPage;
 }
예제 #4
0
 public Long changeIsMade(Long id, Boolean isMade) { // отмечать как «Выполнено»
   Action action = actionRepository.findOne(id);
   action.setIsMade(isMade);
   actionRepository.save(action);
   return action.getId();
 }
예제 #5
0
 public void dellAction(Long id) { // удалять
   actionRepository.delete(id);
 }
예제 #6
0
 public Long addAction(Action action) { // добавлять новые
   // Action action = new Action(actionName, date, note);
   actionRepository.save(action);
   return action.getId();
 }
예제 #7
0
 public Action getAction(Long id) {
   return actionRepository.findOne(id);
 }