This content has been marked as final.
Show 4 replies
-
1. Re: EJB-QL not equals to
aloubyansky Jul 27, 2004 1:54 AM (in response to juniorcarl)Try
<ejb-ql><![CDATA[SELECT OBJECT(s) FROM Service s WHERE s.price <> 0]]></ejb-ql>
-
2. Re: EJB-QL not equals to
juniorcarl Jul 27, 2004 7:33 AM (in response to juniorcarl)
Cheers, that worked.
So the rule of thumb is that I need to include the CDATA bit if I'm using a comparison operator like < or > in my EJB-QL? Otherwise, I can ignore it? -
3. Re: EJB-QL not equals to
dannyyates Jul 27, 2004 8:54 AM (in response to juniorcarl)No. The absolute rule (no thumbs here) is that your deployment descriptor has to be well-formed (and valid) XML. What you originally wrote is not well-formed XML. There are a couple of ways you can 'escape' the important symbols (<, >, &, ' and ") and using a CDATA section is one of them.
-
4. Re: EJB-QL not equals to
aloubyansky Jul 28, 2004 2:24 AM (in response to juniorcarl)Yes. The exception is thrown by the XML parser. You should make sure the deployment descriptor has a valid XML content.