This content has been marked as final.
Show 4 replies
-
1. Re:
juha Jan 5, 2004 2:44 AM (in response to zorzella)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?
-
2. Re:
zorzella Jan 5, 2004 12:14 PM (in response to zorzella)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 ();
Zorzella -
3. Re:
zorzella Jan 5, 2004 12:15 PM (in response to zorzella)Note: the query, as posted, works. It's when I change <= for < that problems arise.
-
4. Re:
juha Jan 6, 2004 2:46 AM (in response to zorzella)Yes, you have to use JBossQL if you want to use the <= or >= operators with dates.