I am trying to achieve dateadd in my EJB query. I tried something like this but it doesn't work:
select t.date + 1 from Table t
Once I tried executing that code, this exception comes out:
org.hibernate.exception.SQLGrammarException: ERROR: operator does not exist: timestamp without time zone + integer Hint: No operator matches the given name and argument type(s). You might need to add explicit type casts. Position: 93
I also tried casting 1 to date and interval but the query result would only be null. I just wonder, is it really possible to add days in a given date in an EJB query