Ниже приведен запрос в репозитории:
Код: Выделить всё
@Query(value = "select * from Account where DATETIMESTAMP >= :dateFrom AND DATETIMESTAMP < :DATE_FORMAT(curdate(), '%d/%m/%Y')", nativeQuery = true)
List findByDate(@Param("dateFrom") String dateFrom);
Код: Выделить всё
Named parameter not bound : DATE_FORMAT; nested exception is org.hibernate.QueryException: Named parameter not bound : DATE_FORMAT
Подробнее здесь: https://stackoverflow.com/questions/643 ... pring-boot