1 Reply Latest reply on Mar 2, 2003 8:55 AM by ansh301

    Finder method

    pranav

      Dear All,

      I am trying to add a query method in my entity bean. Following is the x-doclet that i'v added in my Bean class, to generate the related code.
      --------------------------------------------
      *
      * @ejb:finder signature="java.util.Collection findAllProducts()"
      * @jboss:finder-query name="findAllProducts"
      * query="productID IS NOT NULL"
      *
      --------------------------------------------
      The PROBLEM is this --->> When I try to call this method in my client, it throws an exception, but other finder methods work fine.

      Have a look....may be you cud help...

      Cheers

        • 1. Re: Finder method
          ansh301

          hi,

          try changing the name from 'findAllProducts' to 'findAll' or something similar and sensible. i also had the same problem. on changing the method name, it worked.

          best of luck