Tim Drury wrote:
>
> I don't think is _has_ to return a collection - in this
> case I know the string I'm searching on is unique. But,
> just for grins, I made it a Collection but got the same
> error.
>
> Any other ideas?
>
Hi Tim (and all others who want to user FindBy-methods)!
I have had the same problem you have, and so I've looked through Jaws
sources (CVS from today, tuesday, 22nd of August), and found some
interessting things that has to be changed in order to make the find
stuff working (less tested yet, but findBySomeAttribute works fine):
- comment out or remove in JDBCFindByCommand.java the line declaring the
attribute argsArgument[] since it is declared in one of
JDBCFindByCommand's upperclasses:
//private Object[] argsArgument;
- modify JDBCFinderCommand.java, method handleResult, around line 89:
change from
while (rs.next())
{
Object pk = metaInfo.getPrimary...
...
to
while (rs.next())
{
i=1;
Object pk = ...
...
Hope that helps!
Happy day! nils
--
NILS HARTMANN
CURRY. SMILE @ WORK.
Curry Communication GmbH
Behringstr. 28a
22765 Hamburg
TEL +49.40.398 344 08
FAX +49.40.398 344 09
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]