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.


View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3841553#3841553

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3841553


-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to