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: SimpleExpression.ignoreCase() with non-strings issue
PostPosted: Mon Apr 25, 2011 3:19 pm 
Newbie

Joined: Mon Apr 25, 2011 1:00 pm
Posts: 1
I am calling SimpleExpression.ignoreCase() on a list of criterion; some of these criterion have values that are Strings, and others have values with non-String data types such as Integers. It appears that after I call SimpleExpression.ignoreCase(), the non-String values are being converted to Strings. The issue is that this is causing a problem later on down the line where a function is expecting these criterion to have the original data types. So my question is this: is this the way ignoreCase is intended to work? And is there any way to use ignoreCase or something similar that doesn't change the value data types? (Currently, the best solution I can think of is simply to check to see if each criterion is a string type, and if it is, only then call ignoreCase. However, in the particular class I was wanting to do this in, I don't have easy access to the data type of each criterion).


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.