cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Gentry <mgen...@masslight.net>
Subject Re: Escaping of characters in like/likeIgnoreCase expressions
Date Wed, 25 Aug 2010 13:21:35 GMT
Hi Victor,

What does your Expression.fromString() look like?

If I recall correctly, a % or _ in the substitution map will
automatically be escaped for you, but the actual fromString("...")
part will not.

mrg


On Wed, Aug 25, 2010 at 8:48 AM, Victor Antonovich
<v.antonovich@gmail.com> wrote:
> Hello!
>
> What is correct way of escaping of '%' and '_' characters in query
> like/likeIgnoreCase expressions? Looks like escape chars can be specified
> when Expression instances are created using ExpressionFactory methods, but
> what about expression string representation to use with
> Expression.fromString() method?
>
> Thanks,
> Victor.
>

Mime
View raw message