Typically an ejbSelect<METHOD>(...) method that returns entity objects returns these as EJBLocalObjects. If the ejbSelect<METHOD>(...) method returns an EJBObject or collection of EJBObjects, the Bean Provider must specify the value of the result-type-mapping element in the query deployment descriptor element for the select method as Remote.
[ August 05, 2004: Message edited by: Valentin Crettaz ]
That's fine. But do we specify somewhere that it's returning a COLLECTION or SET ??
And what if it's returning a "cmp field"... where do we specify that??
This is what I got from the spec 10.7.4
The Container must use the contents of the query element, the corresponding EJB QL string and the type of the values selected as specified by the SELECT clause to determine the type of the values returned by a select method. The Container must ensure that there are no duplicates returned by a select method if the return type is java.util.Set.
But it still not clear Read somewhere else in the spec that if we specify a "DISTINCT" in the select clause, then the container will return a SET (no duplicates ) !!! [ August 05, 2004: Message edited by: Giju George ]
SCJP 1.4, SCWCD 1.4, SCBCD 1.3, SCEA
Drove my Chevy to the levee but the levee was dry. A wrung this tiny ad and it was still dry.