hi norman,

older versions of ojb used to call addLike() when a wildcard was found in
the string. the current version issues this warning. imo we could simply
pass the string to the criteria without any warning.
i'll correct it asap.

jakob

----- Original Message -----
From: "Norman C. Jarvis" <[EMAIL PROTECTED]>
To: "OJB Users List" <[EMAIL PROTECTED]>
Sent: Monday, January 06, 2003 4:53 PM
Subject: Criteria.java - addEqualTo and addNotEqualTo


> Whenever I invoke addEqualTo or addNotEqualTo on a Criteria object with
> a value parameter whose type is a String that contains an underscore, _,
> the message 'use addLike() for wildcards' is printed to the log
> (actually only in the addEqualTo method is this message printed)
> and the implementation of the methods adds a new LikeCriteria object
> rather than a new EqualToCriteria object.
>
> Am I missing something about needing to escape the underscore
> character in String values when invoking the addEqualTo or
> addNotEqualTo methods of the Criteria class?  The code seems to show
> that even escaping the underscore character would not solve this
> problem.
>
> --
> Norman Jarvis
> [EMAIL PROTECTED]
>
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to