I suggest adding all collection-interfaces as return-types.
Although java.util.Set might not be useful purely programmatically
(especially if it's not mutable...), it has nice documentary purpose.
And, yes, I agree upon that finder-collections should be immutable.
> -----Original Message-----
> From: A mailing list for Enterprise JavaBeans development
> [mailto:[EMAIL PROTECTED]]On Behalf Of Constantine Plotnikov
> Sent: den 28 maj 1999 18:02
> To: [EMAIL PROTECTED]
> Subject: Allowed collection return types for finders.
>
>
> Hi!
>
> Currently following collection types is supported as return type for
> finders:
> * java.util.Enumeration
> * java.util.Collection
>
> I suggest to add java.util.List to set of allowed collection
> return types. java.util.List is very useful return type because
> it allow positional access and better iterators.
>
> I also suggest to specify that returned collections are immutable
> and will throw java.lang.UnsupportedOperationException for all
> mutators.
>
> Constantine
>
> ==================================================================
> =========
> To unsubscribe, send email to [EMAIL PROTECTED] and include
> in the body
> of the message "signoff EJB-INTEREST". For general help, send email to
> [EMAIL PROTECTED] and include in the body of the message "help".
>
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".