I\'m trying to write this query using Hibernate 3 and Oracle 10.
from Alert alert where alert.expiration > current_date() order by alert.priority, alert.
Is current_date() a Hibernate function?
current_date()
I would use sysdate instead. like this:
sysdate
where alert.expiration > sysdate
Or to ignore time of day:
where alert.expiration > trunc(sysdate)