I have one question on return type of
EJB's findr methods.
Speciication says, you ejb's finderMethods may return java.util.Set which will not contain suplicates and will return the unique result set as compared to java.util.Collection.
But i am trying one finder query ,in which if i use collection as return type is works fine,but if for the same query if i use Set it gives me ClassCastException.
The EjbQL which i have written is a simple select query.
So can you tell me whats going wrong .
And please suggest some links which will educate me more on return type of entitybeans.