-
1. Re: Cannot use < or > symbol in ejb-ql
aloubyansky May 28, 2005 4:45 PM (in response to robr)<ejb-ql> <![CDATA[select object(u) FROM UsersEntityEJB u where u.username < ?1]]></ejb-ql>
-
2. Re: Cannot use < or > symbol in ejb-ql
robr May 28, 2005 6:10 PM (in response to robr)Thanks a million for the reply Alex. I really appreciatte it. I haven't tried it yet but I assume from your post that you know exactly what you're talking about.
-
3. Re: Cannot use < or > symbol in ejb-ql
robr May 28, 2005 6:19 PM (in response to robr)I just tried the suggestion. Here is my code.
Returns Entity Bean that has Username
<query-method>
<method-name>findUsernameEquals</method-name>
<method-params>
<method-param>java.lang.String</method-param>
</method-params>
</query-method>
<ejb-ql>
<![CDATA[select object(u) FROM UsersEntityEJB u where u.username < ?1]]>
</ejb-ql>
My editor (intelliJ) has a red mark by and <ejb-ql>. If I put my cursor on the red mark it gives an error message that says the Element is not closed.
Could you give me a little more help Alex? I will look at the DTD definition to see if I can figure it out. Thanks. -
4. Re: Cannot use < or > symbol in ejb-ql
robr May 28, 2005 6:22 PM (in response to robr)My first reply get messed up so here it is again.
I just tried the suggestion. Here is my code.<query> <description> Returns Entity Bean that has Username </description> <query-method> <method-name>findUsernameEquals</method-name> <method-params> <method-param>java.lang.String</method-param> </method-params> </query-method> <ejb-ql> <![CDATA[select object(u) FROM UsersEntityEJB u where u.username < ?1]]> </ejb-ql> </query>
My editor (intelliJ) has a red mark by and <ejb-ql>. If I put my cursor on the red mark it gives an error message that says the Element is not closed.
Could you give me a little more help Alex? I will look at the DTD definition to see if I can figure it out. Thanks. -
5. Re: Cannot use < or > symbol in ejb-ql
robr May 28, 2005 6:33 PM (in response to robr)Never mind. Must be a qwirk in the Intellij IDE. I typed the code in as you suggested, which created the red error marks, copied the code, deleted the code and then pasted it back in. The red marks went away after the past and my application ran fine when I started JBOSS.
Thanks again.