Hi!

Richard Monson-Haefel wrote:
> EJB 1.0 specified that a multi valued finder that failed to find any
> entities should return a null value.

In which section does it do this? I just checked but I was surprised to
find that it never mentions what should actually be returned (it only
says what the method declaration should look like).

> I need a Sun EJB authority to clarify the expected behavior if a multi
> value ejbFind method fails to locate any matching entities.  Should it
> return null; an empty collection; or throw a FinderException?

I would vote for an empty collection. That would make the most sense and
require the least nr of special cases in code IMHO.

/Rickard

--
Rickard �berg

@home: +46 13 177937
Email: [EMAIL PROTECTED]
Homepage: http://www-und.ida.liu.se/~ricob684

===========================================================================
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".

Reply via email to