Hi,
I'm building a criteria based query using simple expressions of the form
Code:
Criterion criterion;
criterion = SimpleExpression.like( path, value, MatchMode.START );
...which I add to my criteria as a restriction and it works fine for normal characters.
However, I cannot work out how to force escaping of wildcard characters such as %, _ and [] when I use the SimpleExpression class.
The side-effect is that a user cannot search for the literal 'Foo%'.
It there a different call I should be making?