1 Reply Latest reply on Jan 19, 2004 6:42 PM by Chris Malan

    ejbSelect using JBoss-QL and Xdoclet

    Juergen Dufner Newbie


      I want to create a ejbSelect method with following query "SELECT COUNT(*) FROM Person" with Xdoclet. But I don't find a @jboss.select tag in Xdoclet. Exists such a @jboss.select tag or not? Or do I have to use @jboss.query?


        • 1. Re: ejbSelect using JBoss-QL and Xdoclet
          Chris Malan Novice

          Hi Juergen,

          @jboss.query is only for finder methods. There is no @jboss.select in XDoclet 1.2b2 which I have.

          Also, it is EJB QL, and as far as I know it does not have the feature COUNT - I may be mistaken here. A quick look at Sun's EJB documentation did not find COUNT.

          I tried EJBSelect methods but got problems with the method calling the EJBSelect method from within the same EJB CMP bean. I am back to finders - more code but at least they work for me.

          Hope this helps.