cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrus Adamchik <and...@objectstyle.org>
Subject Re: oid as PK
Date Fri, 07 Jul 2006 13:39:27 GMT

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