0 Replies Latest reply on Apr 7, 2002 3:41 AM by ywhking

    Query problem

    ywhking Newbie

      I defined a query method in jbosscmp-jdbc.xml,but can't deploy it.The Jboss server printed out following error messages:

      20:30:52,689 ERROR [EntityContainer] Exception in service lifecyle operation: create
      org.jboss.deployment.DeploymentException: Unknown query method : public abstract java.util.Collection com.css.src.sqm.organization.RoleHome.findByCompanyAndType(java.lang.String,java.lang.String) throws java.rmi.RemoteException,javax.ejb.FinderException

      I don't know if there are syntax problem in the query or something else.My query method is as follows:


      companyId = {0} AND type = {1}


      My platform is win2k + jboss3.0beta

      Any advice will be appriciate.