I want to translate the following HQL into Criteria notation:
from Deal
where CURRENT_DATE between startDate and endDate
I tried using Restrictions.between but it doesn't recognize current_date
Criteria c = session().createCriteria(Deal.class)
.add(Restrictions.between("CURRENT_DATE", "startDate", "endDate");