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 Sat, 07 Jan 2006 02:18:39 GMT
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 javaType="[B" jdbcType="NUMERIC"  
> callback="com.soe.freerealms.dao.ibatis.ByteArrayBigDecimalTypeHandler 
> "/>
>
>
>
> But it is not being called for my byte[] properties.  The existing  
> byte array type handler is instead.  Any clues as how to fix this?
>
>
>
> From: March, Andres [mailto:amarch@soe.sony.com]
> Sent: Friday, January 06, 2006 5:37 PM
> To: user-java@ibatis.apache.org
> Subject: specify typehandler for byte[]
>
>
>
> I am trying to do something like below in my sqlmap-config.xml, in  
> order to avoid having to specify parameter maps for each of my beans.
>
>
>
> <typeHandler javaType="byte[]" jdbcType="NUMERIC"  
> 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?
>
>
>
> -----------------------------------------
>
> Andres March
>
> Platform - Apps Engineering
>
> Sony Online Entertainment
>
> desk: 858.577.3373
>
> cell:   619.519.1519
>
>
>
>


Mime
View raw message