Shawn McKisson wrote:
>
> (jonas 1.5)
>
> I tried out the -keepgenerated option on GenIC, and to my suprise I noticed that
> the find methods of container managed entity beans follow two different rules.
>
> If the find method returns only a single primary key and it does not find
> anything, it throws a new ObjectNotFoundException().
>
> However if the find method returns an enumeration of primary keys and it does
> not find anything, then it returns an empty enumeration.
>
> This seems inconsistent to me.
>
> I guess I would like them to both return nulls if nothing is found, or both
> throw an exception.
>
> Just curious...
>
> --shawn
Hi,
Have a look at the EJB Specification 1.0 : Clas ObjectNotFoundException
(page 144)
or in the EJB Specification 1.1 (�9.1.9.4 page 117)
"Only single-object finders may throw this exception. Multi-object
finders must not throw this exception"
Regards,
--
Philippe
Philippe Coq Groupe Bulll/BullSoft/OpenMaster Phone: (33) 04 76 29 78
49
Bull S.A - 1 rue de Provence - 38432 Echirolles Cedex France
[EMAIL PROTECTED] http://www-frec.bull.com
Download our EJBServer at http://www.bullsoft.com/ejb