such as
date_sub(curdate(), interval 7 day)
i find a solution Hql / jpql date arithmetic but there is no following
such as
date_sub(curdate(), interval 7 day)
i find a solution Hql / jpql date arithmetic but there is no following
You can't use that directly in HQL/JPQL. You have to register a custom SQL function that renders this SQL.