For the Oracle SQL dialect, use sysdate(), as in this example:
select e
from Entity e
where (e.endDate is null or (e.endDate > sysdate()))
This is true for orm.xmlor when using<named-query>
For your specific query, "all rows that have not been created in the last three days," use this:
select e from Entity e where to_date(sysdate() - 3) >= e.created_date
source
share