Exemple #1
0
 public Page<Task> getUserTask(Long userId, int pageNumber, int pageSize, String sortType) {
   PageRequest pageRequest = buildPageRequest(pageNumber, pageSize, sortType);
   return taskDao.findByUserId(userId, pageRequest);
 }
Exemple #2
0
 public List<Task> getAllTask() {
   return (List<Task>) taskDao.findAll();
 }
Exemple #3
0
 @Transactional(readOnly = false)
 public void saveTask(Task entity) {
   taskDao.save(entity);
 }
Exemple #4
0
 @Transactional(readOnly = false)
 public void deleteTask(Long id) {
   taskDao.delete(id);
 }
Exemple #5
0
 public Task getTask(Long id) {
   return taskDao.findOne(id);
 }