Hi,
I�m trying to make a 

SELECT * FROM Table WHERE Field LIKE 'XY%'

I thought a 

Criteria theCriteria = new Criteria();
theCriteria.addLike("myAttributeName", anAttributeValue);
// where the Attribute Type is BigDecimal


should do the Job.


But I�m getting a ClassCastException (I think because of the String-Cast 
at the "addLike(...)" method of Criteria.

But even a:
theCriteria.addLike("myAttributeName", anAttributeValue+"*");

leads to a ClassCastException because of the DatabaseType BigDeciamal or 
NUMERIC.

Any help would be appreciated!
 

Greetings,
Mit freundlichen Gr��en,

Ralf Baron-Riege


___________________________________
intersoft AG, Hamburg
E-Mail: [EMAIL PROTECTED]
http://www.intersoft.de
Fon +49 40 80 81 08 - 224
Fax +49 40 80 81 08 - 141

Reply via email to