0 Replies Latest reply on Jul 26, 2005 9:48 AM by Mathias Dpunkt

    Query method not found

    Mathias Dpunkt Newbie

      Hi,

      i implemented a finder method using xDoclet.

      The tag looks like this:

       @ejb.finder
       signature="de.fhnon.beans.Kunde findByLoginData(java.lang.String email, java.lang.String passwort)"
       query="SELECT DISTINCT OBJECT(a) FROM kunde a WHERE a.email = ?1 AND a.passwort = ?2"


      Here is the snippet from the ejb-jar:
      <query>
       <query-method>
       <method-name>findByLoginData</method-name>
       <method-params>
       <method-param>java.lang.String</method-param>
       <method-param>java.lang.String</method-param>
       </method-params>
       </query-method>
       <ejb-ql>[CDATA[SELECT DISTINCT OBJECT(a) FROM kunde a WHERE a.email = ?1 AND a.passwort = ?2]]</ejb-ql>
       </query>
      


      When i try to deploy the bean I get the following exception:

      org.jboss.deployment.DeploymentException: Query method not found: findByLoginData(java.lang.String,java.lang.String)

      The method seems to be correctly generated in the Home Interfaces:
      public de.fhnon.beans.Kunde findByLoginData(java.lang.String email, java.lang.String passwort)
       throws javax.ejb.FinderException,java.rmi.RemoteException;
      


      Any help is highly appreciated - thank u.