-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Can I escape wildcard characters in in SimpleExpressions?
PostPosted: Tue May 24, 2005 4:47 am 
Newbie

Joined: Tue Feb 15, 2005 5:25 am
Posts: 2
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?


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.