(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

Reply via email to