EJB specification says that finder methods returns either EJBObject or EJBLocalObject.
So you can't define finder that returns Double.
You must implement business method for that witch returns Double in interface.
Rgds,
Markku
[EMAIL PROTECTED] wrote:
Sorry, I sent the previous mail by mistake, it was not ready:
Hi,
I tried hard to find the answer, how to formulate a finder-method with an aggregat in QL. I tried the following:
----------------------------------------------------------------------------------------------------------------
* @ejb.finder
* signature = "java.lang.Double findDebitSum( java.lang.Integer periodid, java.lang.Long simid, java.lang.String debitacc )"
* unchecked = "true"
* query = "SELECT sum(a.amount) from jrnl a where a.periodid = ?1 and a.simid = ?2 and a.debitacc = ?3"
----------------------------------------------------------------------------------------------------------------
In the interface, I am getting the findDebitSum Method which returns my EJB object. But I just need the Double result.
Thanks for your hints.
Klaus
-- Markku Saarela Senior Software Engineer (OO Technology, Java, J2EE, Smalltalk) Entra e-Solutions Oy mobile: +358-9-590 6505 [EMAIL PROTECTED] www.entra.fi
------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user
