From: Alex L. <lou...@ua...> - 2003-03-06 12:29:51
|
Thursday, March 06, 2003, 12:20:54 PM, Ionel Gardais wrote: IG> Hi, IG> Is it possible to automatically narrow the results of a finder ? IG> i.e : finder findByName(String name) on PersonBean is likely to return a single result each time so the signature can be com.test.interface.PersonneLocal findByName(java.lang.String name) IG> But in the case it returns more than one result, this signature will not be valid. IG> Will JBoss throw an exception ? Yes. alex IG> Will it return only the first result ? IG> Do I need to use a Collection "in case where it eventually may" return more than one result ? IG> thanks, IG> ionel |