My query below, shows hibernate exception:
SELECT DATE_ADD(DATE_FORMAT(MIN(t.time),'%Y-%m-%d'), INTERVAL 6 DAY) FROM Table t;
From what I understand, hibernate doesn't recognize INTERVAL keyword.
Can anyone please help me write an HQL query which gives me the same result as my above query?
(I am trying to get the date post 1 week from the minimum date in my table)