cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Fraser <m...@mark100.net>
Subject Re: Apostrophe escaping in select
Date Thu, 12 Feb 2009 05:38:20 GMT
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).

Mark



Mime
View raw message