This content has been marked as final.
Show 2 replies
-
1. Re: ParseException when using <= operator
raist_majere Nov 4, 2004 9:32 PM (in response to apeter)I think you're not right when saying that EJB 2.0 spec permits what you were trying to do. As the spec says, datetime_value comparisons only allow these operators: =,<>,>,<. The kind of comparation you wanted to use is restricted to arithmetic types.
comparison_expression ::= string_value { =|<>} string_expression | boolean_value { =|<>} boolean_expression} | datetime_value { = | <> | > | < } datetime_expression | entity_bean_value { = | <> } entity_bean_expression | arithmetic_value comparison_operator single_value_designator arithmetic_value ::= single_valued_path_expression | functions_returning_numerics single_value_designator ::= scalar_expression comparison_operator ::= = | > | >= | < | <= | <>
This is extracted from the EJB 2.0 spec, on the EJBQL BNF grammar section. I think this answered your question. -
2. Re: ParseException when using <= operator
apeter Nov 5, 2004 8:47 AM (in response to apeter)You are correct. The BNF does not specify the <= operator. Thanks for the clarification.