@RequestMapping(method = RequestMethod.GET)
 public Page<Kriteria> listKriteria(
     @RequestParam(name = "search") String search, Pageable pageable) {
   if (search.equals("")) {
     return kriteriaRepository.findAll(pageable);
   }
   return kriteriaRepository.findBySearch(search, pageable);
 }
 @RequestMapping(value = "/all", method = RequestMethod.GET)
 public Iterable<Kriteria> listKriteria() {
   return kriteriaRepository.findAll();
 }