db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dan Allen <...@mojavelinux.com>
Subject using LIKE clause
Date Tue, 11 Mar 2003 04:02:08 GMT
At least in my version of javac, JDK 1.4.1, the only way to make the
LIKE Criteria work without throwing that ambiguous clause message is
to create the object outside of the call to add()

Object keywordSearch = (Object) "%" + keyword + "%";
crit.add(KEYWORD, keywordSearch, Criteria.LIKE);

no matter what else I try, no matter how many () I use around the
cast, I can't get it to work with the keywordSearch string inline
with the function call.

Dan

-- 
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
Daniel Allen, <dan@mojavelinux.com>
http://www.mojavelinux.com/
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
[Frodo]: "I wish it need not have happened in my time." 
[Gandalf]: "So do I, and so do all who live to see such times. 
But that is not for them to decide. All we have to decide is 
what we do with the time that is given to us.'
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

Mime
View raw message