I need to replace this code from pgAdmin4:
DELETE from order_entity where (LOCALTIMESTAMP - local_date_time > '00:10:00')
to @Query Spring boot like:
@Query(" DELETE from OrderEntity o where (current_timestamp - o.localDateTime < '00:10:00')")
But i have and issue near where: '(', <expression>, FUNCTION or identifier expected, got '('
Help please.