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:[EMAIL PROTECTED]
Sent: Friday, January 06, 2006 5:37 PM
To: [email protected]
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

 

Reply via email to