ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Henrique Ferreira e Silva <dhsi...@gmail.com>
Subject Re: How to use type handler callbacks inside quiries?
Date Tue, 05 Jul 2005 12:25:37 GMT
Hi Martin,

Curiously this seems to not be well documented. At least, i couldn't
find it in the DevGuide.
You can do:

#myProperty,handler=foo.bar.MyHandler#

According to mailing list archives, that should work.

Cheers,
Daniel Silva.

On 7/5/05, Zeltner Martin <martin.zeltner@elca.ch> wrote:
>  
> Once again. 
>   
> How does I have to use TypeHandlerCallbacks inside the #myProperty#? I DON'T
> want to use a separate parameter maps only because I'm needing a type
> handler for one column! 
>   
> Thanks for your help in advance! 
>   
> Cheers, 
> Martin
>  
>   
> 
>  -----Original Message-----
> From: Clinton Begin [mailto:clinton.begin@gmail.com]
> Sent: Dienstag, 5. Juli 2005 04:02
> To: user-java@ibatis.apache.org; Daniel Henrique Ferreira e Silva
> Subject: Re: How to use type handler callbacks inside quiries?
> 
>  
> True Daniel,
> 
> It's possible.  But I do sympathize with Marting, as it currently is a pain
> in the butt.  
> 
> The biggest issue is that you have to ensure that the parameters line up
> exactly.  That is, you need to ensure that all paths of the conditional
> results result in the exact same number and type of parameters.....
> 
> The design of parameter maps is shotty at the moment (embarassing for a 3
> year old project).....iBATIS 3.0 (or perhaps even 2.5) will use named
> parameters, much like Spring, O/R Broker and .... even ADO .NET (see, there
> is something to learn from the C# dudes!  ;-)
> 
> Clinton
> 
> 
>  
> On 7/4/05, Daniel Henrique Ferreira e Silva <dhsilva@gmail.com> wrote: 
> > Hi Martin,
> > 
> > Why can't you use a parameter map in a dynamic statement? That _is_
> > possible in iBATIS. Just check the documentation.
> > 
> > Cheers,
> > Daniel Silva.
> > 
> > On 7/4/05, Zeltner Martin < martin.zeltner@elca.ch> wrote:
> > > Hi,
> > >
> > > How does I have to declare type handler callbacks inside #myData#?
> > > I can not use a parameter maps, because my statement contains dynamic
> parts.
> > >
> > > Thanks,
> > > Martin
> > >
> > 
> 
>

Mime
View raw message