Return-Path: Delivered-To: apmail-ibatis-user-java-archive@www.apache.org Received: (qmail 44686 invoked from network); 5 Jul 2005 06:13:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 5 Jul 2005 06:13:18 -0000 Received: (qmail 66214 invoked by uid 500); 5 Jul 2005 06:13:16 -0000 Delivered-To: apmail-ibatis-user-java-archive@ibatis.apache.org Received: (qmail 66190 invoked by uid 500); 5 Jul 2005 06:13:15 -0000 Mailing-List: contact user-java-help@ibatis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user-java@ibatis.apache.org Delivered-To: mailing list user-java@ibatis.apache.org Received: (qmail 66175 invoked by uid 99); 5 Jul 2005 06:13:15 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Jul 2005 23:13:15 -0700 X-ASF-Spam-Status: No, hits=0.1 required=10.0 tests=HTML_50_60,HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [193.72.144.2] (HELO mail.elca.ch) (193.72.144.2) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Jul 2005 23:13:15 -0700 Received: from exchange.elca.ch (unverified) by mail.elca.ch (Content Technologies SMTPRS 4.3.17) with ESMTP id for ; Tue, 5 Jul 2005 08:13:08 +0200 Received: by exchange.elca.ch with Internet Mail Service (5.5.2653.19) id ; Tue, 5 Jul 2005 08:13:00 +0200 Message-ID: From: Zeltner Martin To: "'user-java@ibatis.apache.org'" Subject: RE: How to use type handler callbacks inside quiries? Date: Tue, 5 Jul 2005 08:12:59 +0200 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C58128.98120580" X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01C58128.98120580 Content-Type: text/plain; charset="ISO-8859-1" 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 > ------_=_NextPart_001_01C58128.98120580 Content-Type: text/html; charset="ISO-8859-1"
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
>

------_=_NextPart_001_01C58128.98120580--