What is wrong with this xdoclet EQL finder tags (which deploys OK without the 
wher clause):


  | @ejb.finder         
  |   signature = "nl.wifi4all.interfaces.ClientAntenna 
findByCustomer(java.lang.String customerObjectId)" 
  |   query = "SELECT OBJECT(c) FROM ClientAntenna AS c WHERE c.customer=?1"
  | 

ClientAntenna is the name of both the remote Bean interface and  the abstract 
schema (and even database table). customer exists as a column and as CMP field.

On deployment it gives exceptions:
.....
16:46:21,893 INFO  [STDOUT] org.jboss.ejb.plugins.cmp.ejbql.ParseException: 
Encountered "1" at line 1, column 59.
Was expecting one of:
    <IDENTIFICATION_VARIABLE> ...
    <ENTITY_VALUED_PARAMETER> ...
    <ENTITY_VALUED_PATH> ...

and (a lot of lines) later:
...
16:46:21,924 ERROR [EntityContainer] Starting failed 
jboss.j2ee:jndiName=ejb/Address,service=EJB
org.jboss.deployment.DeploymentException: Error compiling EJB-QL statement 
'SELECT OBJECT(c) from ClientAntenna AS c WHERE c.customer=?1'; - nested 
throwable: (org.jboss.ejb.plugins.cmp.ejbql.ParseException: Encountered "1" at 
line 1, column 59.
Was expecting one of:
    <IDENTIFICATION_VARIABLE> ...
    <ENTITY_VALUED_PARAMETER> ...
    <ENTITY_VALUED_PATH> ...
    )

The relevant ejb-jar.xml:

  |          <query>
  |             <query-method>
  |                <method-name>findByCustomer</method-name>
  |                <method-params>
  |                   <method-param>java.lang.String</method-param>
  |                </method-params>
  |             </query-method>
  |             <ejb-ql>[CDATA[SELECT OBJECT(c) from ClientAntenna AS c WHERE 
c.customer=?1]]</ejb-ql>
  |          </query>
  | 

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3873779#3873779

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3873779


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to