@Query(value = "SELECT 1 b.updateDate FROM DemandUnit b ORDER BY b.updateDate DESC LIMIT 1", nativeQuery = true)
LocalDateTime findTopByOrderByUpdateDateDesc();
Это мой запрос на возврат самой последней даты обновления из таблицы. Возникает следующая ошибка:
{"timestamp": "2020-03-20T18:31:19.094+0000",
"status": 500,
"error": "Internal Server Error",
"exception": "org.springframework.dao.InvalidDataAccessResourceUsageException",
"message": "could not extract ResultSet; SQL [n/a]; nested exception is
org.hibernate.exception.SQLGrammarException: could not extract ResultSet",
"path": "/api/batch/demand/update/check"}
любой намек на то, что может вызвать его?