2 Replies Latest reply on Jul 10, 2004 11:47 AM by reinaerde

    EBJ QL question

      Hello all,

      I'm trying to deploy an app that uses ejb ql to do some queries. One query needs to return a collection, but it always is empty, regardless it should return values or not. As test, I copied the findAll method. This returns 2, but the copy (my own method) returns always 0.


      <query-method>
      <method-name>findAllResources</method-name>
      <method-params />
      </query-method>
      <ejb-ql>SELECT OBJECT(o) FROM UserResources AS o</ejb-ql>


      <query-method>
      <method-name>findAll</method-name>
      <method-params />
      </query-method>
      <ejb-ql>SELECT OBJECT(o) FROM UserResources AS o</ejb-ql>



      (local) home:

      public Collection findAllResources() throws FinderException;
      public Collection findAll() throws FinderException;

      Am I missing a basic idea here?

      Thanks in advance.