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