ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Sanders <tendan...@gmail.com>
Subject RE: How to map getBytes in iBATIS?
Date Fri, 11 May 2007 14:43:24 GMT

Thanks for the suggestions. I'm going to be quick and say I didn't write this
code as I would not have duplicated the getBytes call in the original
source. Anyway, I wrote my own custom type handler and it all works just

Niels Beekman-2 wrote:
> Hi,
> I don't believe there is a way to map directly to byte[]. IMHO, byte
> arrays should not be used as properties. Maybe you could create a custom
> typehandler that maps the byte[] to String.
> If I may do another suggestion: avoid doing rs.getBytes() multiple times
> for the same column, you'd better do the following:

View this message in context: http://www.nabble.com/How-to-map-getBytes-in-iBATIS--tf3717367.html#a10433344
Sent from the iBATIS - User - Java mailing list archive at Nabble.com.

View raw message