This content has been marked as final.
Show 3 replies
-
1. Re: Date in EJB-QL problem ?
dsundstrom Jul 15, 2002 3:28 PM (in response to ericmacau)EJB-QL does not allow dates for the between function. Use the > and < operators instead.
-
2. Re: Date in EJB-QL problem ?
tallyho Aug 5, 2002 10:43 AM (in response to ericmacau)Doesn't the EJB-QL specification state that you should not use Date at all? From section 11.2.11 of the specification:
"Date and time values should use the standard Java long millisecond value. The standard way to produce
millisecond values is to use java.util.Calendar." -
3. Re: Date in EJB-QL problem ?
dsundstrom Aug 6, 2002 2:41 PM (in response to ericmacau)That section is just saying that dates should have the resolution of milliseconds, but does not say you shouldn't use dates. The date stuff in the CMP specification is very poorly written. I think this is on purpose as temporal data is a very difficult issue, and there are really not right aswers.