On Feb 11, 2009, at 2/1111:38 PM , Mark Fraser wrote:
> Robert Zeigler wrote:
>>
>> SelectQuery q = new SelectQuery(Person.class);
>>
>> Expression qual =
>> ExpressionFactory.matchExp(Person.COUNTRY_PROPERTY,country);
>> qual =
>> qual.andExp(ExpressionFactory.matchExp(Person.NAME_PROPERTY,name);
>>
>> q.setQualifier(qual);
>> dataContext().performQuery(qual);
>>
> Thanks Robert this works well for me (FTR needed to use the query
> ('q') not the qual in the last line).
>
Whoops! Yeah, you're right; performQuery takes a query argument, not
an expression! :) Must've been tired.
Cheers,
Robert
> Mark
>
>
This archive was generated by hypermail 2.0.0 : Thu Feb 12 2009 - 08:34:34 EST