5 Replies Latest reply on Oct 15, 2002 5:38 AM by Tin Blaskovic

    JBossQL Problem

    Richard Doust Newbie

      Hi.
      I've written a JBossQL query and am getting an exception at deployment. The exception says:
      org.jboss.deployment.DeploymentException: Unknown query method : public abstract java.util.Collection com.foo.entity.user.ejb.UserBean.ejbSelectTransactionsReverseOrder(com.foo.entity.user.UserLocal) throws javax.ejb.FinderException.
      Here's the declaration from jbosscmp-jdbc.xml:

      <query-method>
      <method-name>ejbSelectTransactionsReverseOrder</method-name>
      <method-params>
      <method-param>com.foo.entity.user.UserLocal</method-param>
      </method-params>
      </query-method>
      <jboss-ql>SELECT OBJECT(t) FROM Transaction t WHERE t.user = ?1 ORDER BY t.date DESC, t.id DESC</jboss-ql>


      and here's the declaration in UserBean.java:
      public abstract Collection
      ejbSelectTransactionsReverseOrder(UserLocal user)
      throws FinderException;

      Can anyone help me resolve this?

      Thanks,
      Rich