Mike Young wrote:

I have 'improved' the BuildCriteria to handle columns of type Integer. I
had to use addSql because addLike causes a class cast exception if the
field type is of Integer.

It should suffice to use

        criteria.addLike (colName, colValue.toString());

in your method instead of the comparison to String and Integer (which you should do with instanceof btw).
The LikeCriteria in CVS Head has this already fixed.


Tom

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



Reply via email to