You can return a Vector, in practice we have found it easier to return a
Collection, but since it subclasses (indirectly) Collection a Vector can be
returned.
Al
----- Original Message -----
From: Anoop <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, June 26, 2001 3:43 PM
Subject: [JBoss-user] Can custom finder methods return java.util.Vector
> Hi,
>
>
> Can ejb finder methods return java.util.Vector????
>
> As for the ejb specification it has to return either the primary key
> class or a collection of primary keys.
> Can Vector be its return type, as Vector implements java.util.List
which
> in turn extends java.util.Collection, can finder method return any of the
> sub classes of
> Collection or it has to be only the Collection interface?
>
>
> Thanks,
> Anoop.
>
>
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user