ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gwyn Evans" <gwyn.ev...@gmail.com>
Subject Re: What is purpose of TypeHandler
Date Tue, 08 Aug 2006 08:15:19 GMT
Take a look at the "Creating custom Type Handlers" section of the
iBATIS-SqlMaps-2.pdf for an example that shows how a java boolean
might be mapped to/from "Y" or "N" values in a DB field.

/Gwyn

On 08/08/06, Socheat KHAUV <khauv_socheat@yahoo.com> wrote:
> can you give me a small example on it ?
> cuz i can not find this simple configuration in the document of iBatis.
>
>
> Clinton Begin <clinton.begin@gmail.com> wrote:
>
> Type handlers handle the translation between Java types and database types.
> You can customize them, but you don't need to.  The advantage is that you
> can deal with complex or unique types not supported by default.
>
> You seem new to iBATIS, so to begin with, you will likely not have to worry
> about it.  When you need a custom type handler, you'll know.  :-)
>
> Clinton
>
> On 8/7/06, Socheat KHAUV <khauv_socheat@yahoo.com> wrote:
> >
> > Could you give some clue ?
> >
> > what is the advantage of TypeHandler and how to use it ?
> >
> >
> > ________________________________
> Groups are talking. We┬┤re listening. Check out the handy changes to Yahoo!
> Groups.
> >
>
>
>
>
>  ________________________________
> Yahoo! Music Unlimited - Access over 1 million songs. Try it free.
>
>


-- 
Download Wicket 1.2.1 now! - http://wicketframework.org

Mime
View raw message