sangeetha
asked on
EJB Query Language
How can i return Double from EJB QL in ejb.finder method.
Can we only return Collections?
I am trying to selelct sum... Query.
Thanks.
Can we only return Collections?
I am trying to selelct sum... Query.
Thanks.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Sorry, pressed "Submit" too quickly.
EJB-QL does not restrict you from only returning collections.
EJB-QL does not restrict you from only returning collections.
> Should it be java.lang.Double rather than java.util.Double
That is a very good point!! Well spotted :-)
That is a very good point!! Well spotted :-)
ASKER
@ejb.finder signature = "java.util.Double findByPeriode(java.util.Da
I am not able to return Double from the Query.