I'm trying to apply a mysql
specific function to a querydsl definition:
entity.departureDate.after(SQLExpressions.addDays(entity.departureDate, 10))
Results in generated sql:
select * from mytable where departureDate > add_days(departureDate,?1)
But that results in an exception, as add_days
is not a known mysql function:
Caused by: java.sql.SQLSyntaxErrorException: FUNCTION mytable.add_days does not exist
Question: how can I tell querydsl
to use DATE_ADD()
function instead?