1 Reply Latest reply on Oct 4, 2002 2:56 PM by sfan

    finder query syntax

    sfan Newbie

      Does someone knows where is the document for Doclet to generate query statement?
      I'm trying to use findByName method in template project. It give me a 'unknow query' error.
      Template had in TestEntityBean
      * @ejb:finder signature="test.interfaces.TestEntity findByName( java.lang.String pSurname, java.lang.String pLastName )"
      *
      * @jboss:finder-query name="findByName"
      * query="First_Name = {0} AND Last_Name = {1}"
      *
      * @ejb:finder signature="test.interfaces.TestEntity findByFirst_Name( java.lang.String pSurname)"

      Thanks a lot

      sfan

        • 1. miss past
          sfan Newbie

          Sorry
          In template project TestEntityBean had
          * @ejb:finder signature="test.interfaces.TestEntity findByName( java.lang.String pSurname, java.lang.String pLastName )"
          *
          * @jboss:finder-query name="findByName"
          * query="First_Name = {0} AND Last_Name = {1}"


          sfan