This content has been marked as final.
Show 3 replies
-
1. Re: finder with single result
triathlon98 Apr 1, 2004 4:43 PM (in response to triathlon98)I have not found anything in the specs about the required behaviour when more than one result is found. Any objections to changing to return the first one found?
Joachim -
2. Re: finder with single result
aloubyansky Apr 3, 2004 6:17 AM (in response to triathlon98)According to 10.5.6.1 Single-object finder, it should throw FinderException. Doesn't it happen? How can it return null if there are several rows matching the criteria?
-
3. Re: finder with single result
mkyaj Apr 3, 2004 12:15 PM (in response to triathlon98)Hi,
I think changing that finder return type to Collection and getting ur required entity from that collection in the code will the alternative for this.
(But it may be like loading unnecessary data :-( )
Murali.