IIRC, they're only supported by a limited set of datatypes in EJBQL. What types are you trying to compare, and have you tried using JBossQL instead? What does your query look like?
I'm trying to compare "java.util.Date".
The query is:
SELECT Object(Ob) FROM Obs as Ob WHERE Ob.establishedAt < ?1
The getter is:
public abstract Date getEstablishedAt ();
Note: the query, as posted, works. It's when I change <= for < that problems arise.
Yes, you have to use JBossQL if you want to use the <= or >= operators with dates.