----------
page 233
If the
EJB QL query is specified for a method whose return type is java.util.Collection , the
collection of values returned by the Container may contain duplicates if DISTINCT is not specified in
the SELECT clause. If the query is specified for a method whose result type is java.util.Set, but
does not specify DISTINCT, the container must interpret the query as if SELECT DISTINCT had been
specified.
------------
ofcourse if u have distinct in a collection type result... the result will be the same as that of set.
Frederic Esnault since u are watching this
thread... is it necessry for the primary key class(compound key example on you site) to have the getters and setters in addition to the getters and setters in the bean class.
thanks
[ June 29, 2006: Message edited by: Srividhya Anand ]