How would you describe what you are doing?
It's obviously a misuse. Aggregate functions are allowed only in ejbSelect's and they never return EJB[Local]Object's.
Yes, i know it.
But this code works !
Maybe you explain me how2 use SUM or another aggregate functions ?
Please, show me the little properly sample.
There is some info in the EJB2.1 spec.
220.127.116.11 Aggregate Functions in the SELECT Clause
Thank you, Alex.
But i dont understand: 3.2.4 support EJB2.1 ? or 2.0 ?
No, 2.0. Just the QL syntax was extended to support 2.1.