ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nathan Maves <Nathan.Ma...@Sun.COM>
Subject Re: specify typehandler for byte[]
Date Mon, 09 Jan 2006 02:49:48 GMT
Andres,

I guess I am confused as to what you are trying to do.  Can you give  
an example of the data?

Nathan


On Jan 6, 2006, at 7:22 PM, March, Andres wrote:

> I’m trying to write the bytes to a numeric column not a binary  
> one.  The default one uses setBytes().  I need to do setBigDecimal().
>
>
>
> From: Nathan.Maves@Sun.COM [mailto:Nathan.Maves@Sun.COM]
> Sent: Friday, January 06, 2006 6:19 PM
> To: user-java@ibatis.apache.org
> Subject: Re: specify typehandler for byte[]
>
>
>
> why is the default not good enough for you?
>
>
>
> On Jan 6, 2006, at 6:51 PM, March, Andres wrote:
>
>
>
>
> Well, I learned something new today – the internal representation  
> of class names.  This mapping does not fail like before:
>
>
>
> typeHandler =jdbcType"NUMERIC" =/>     <javaType"byte[]"  
> =callback"com.soe.freerealms.dao.ibatis.ByteArrayBigDecimalTypeHandler 
> "
>
> But I get an error because iBatis is doing a class.forName() on the  
> javaType attribute.  Is there any way to do this mapping?
>
> -----------------------------------------
>
> Platform - Apps Engineering
>
> desk: 858.577.3373
>
>


Mime
View raw message