cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mike Kienenberger" <mkien...@gmail.com>
Subject Re: How to express "column is null"
Date Wed, 26 Apr 2006 14:33:25 GMT
On 4/26/06, I. Venuti <i.venuti@caribel.it> wrote:
> I'm trying to use an expression where I impose the condition "column is
> null".
> I've tried:
>
>  exp.setOperand( Expression.EXIST, "id_news");
>
> but it doesn't seem to work.

exp = ExpressionFactory.matchExp("id_news", null)

Something like the form below would help you avoid hardcoding model names.

exp = ExpressionFactory.matchExp(YourObjEntity.ID_NEWS_PROPERTY, null)

Mime
View raw message