cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Borut Bolčina <...@najdi.si>
Subject Re: oid as PK
Date Sat, 08 Jul 2006 10:56:20 GMT
Thanks Andrus!


Andrus Adamchik pravi:
>
> On Jul 7, 2006, at 12:52 AM, Borut Bolčina wrote:
>
>> qual = qual.andExp(ExpressionFactory.greaterExp("oid", 
>> lastIndexedSource));
>
>
> Actually you can use an expression with "db:" prefix to match on a 
> table column that is not an object property. ExpressionFactory doesn't 
> have a "db" flavor for some of its methods, including 'greaterExp' (an 
> oversight on our part), but you can use Expression.fromString(..)
>
> qual = qual.andExp(Expression.fromString("db:oid > " + 
> lastIndexedSource));
>
> Andrus


Mime
View raw message