>Hi to all, i am getting this error when i use Criteria class in this way, i wondered if any of you had this one before?
Hi Raffaele, >reference to add is ambiguous, both method add(java.lang.String,java.lang.Object,org.apache.torque.util.SqlEnum) in >org.apache.torque.util.Criteria and method add(java.lang.String,java.lang.String,java.lang.Object) in org.apache.torque.util.Criteria match >crit.add( ForumPostsPeer.TITLE, "%"+lkeywords[i]+"%", Criteria.LIKE ); you just have to cast the second parameter like this : crit.add( ForumPostsPeer.TITLE, (Object) "%"+lkeywords[i]+"%", Criteria.LIKE ); -----------------------------------^^^^^^^ It must work now... Manu. _____________________________________________________________________ GRAND JEU SMS : Pour gagner un NOKIA 7650, envoyez le mot IF au 61321 (prix d'un SMS + 0.35 euro). Un SMS vous dira si vous avez gagn�. R�glement : http://www.ifrance.com/_reloc/sign.sms -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
