iBATIS does not have a type handler for BigInteger - because there is no "getBigInteger()" method on a result set.  iBATIS will call getObject() if it doesn't know what the data type is (i.e. if you use a Map as a result, or if the property in your result class is of type Object) - then you could cast it yourself.  This will mimic what you are doing in JDBC.
 
Jeff Butler

 
On 10/26/05, Siming Weng <[EMAIL PROTECTED] > wrote:
Hi,

I'm trying to map a table field of unsigned bigint to long value in
java. But it always give wrong numbers looks like being overflow. Pure
JDBC code can return the correct value.

JDBC documenation says RecordSet.getObject(int columnIndex) will
return a java.math.BigInteger if the field is unsigned bigint. But it
seems iBatis doesn't support BigInteger.

did anyone experience the same problem?

Cheers,

Simon

Reply via email to