could not extract ResultSet; SQL [n/a]
При попытке приравнять результат запроса Update к int x - выходит такая ошибка,
@RequestMapping(value = "/make-zero",method = RequestMethod.GET)
public String home(Model model ) {
try {
int x = employeeEventRepository.setToZero();
model.addAttribute("login", x);
}
catch (Exception e){
System.out.println(e);
}
return "redirect:/timetracking/compensatory/pereschet";
а запрос у меня такой
@Query(value = "update TT_EMPLOYEE_EVENT set status = 0 where is_approved = 1 and status = 1 and create_date < current_timestamp - numtodsinterval(30, 'minute');COMMIT ;
есть ли кто сможет помочь?