Return-Path: Delivered-To: apmail-ibatis-user-java-archive@www.apache.org Received: (qmail 20743 invoked from network); 15 May 2006 07:32:50 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 15 May 2006 07:32:50 -0000 Received: (qmail 44493 invoked by uid 500); 15 May 2006 07:32:48 -0000 Delivered-To: apmail-ibatis-user-java-archive@ibatis.apache.org Received: (qmail 44472 invoked by uid 500); 15 May 2006 07:32:48 -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 44461 invoked by uid 99); 15 May 2006 07:32:47 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 May 2006 00:32:47 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [83.247.21.91] (HELO wis.nl) (83.247.21.91) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 May 2006 00:32:46 -0700 Subject: RE: Problem with using generic and specific custom TypeHandlers Date: Mon, 15 May 2006 09:32:13 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Message-ID: <50CA25BD6EEA954FA592C097399942E30E4640E2@CM1.wis.local> X-MS-Has-Attach: Content-class: urn:content-classes:message X-MS-TNEF-Correlator: X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Thread-Topic: Problem with using generic and specific custom TypeHandlers thread-index: AcZ38Ac2MtX51WMpSea9Yh5oSLc6fwAAYKeQ From: "Niels Beekman" To: X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Are you using the DTD for your sqlmap configfile? There is no such element "typeHandlers"... Niels -----Original Message----- From: Tracey Annison [mailto:tannison@trisystems.co.uk]=20 Sent: maandag 15 mei 2006 9:20 To: user-java@ibatis.apache.org Subject: RE: Problem with using generic and specific custom TypeHandlers Thanks, Ben.=20 Well, I now have XML like this :=20 Generic TypeHandler in the sql-map-config.xml-=20 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D And in the thing.xml I have a ResultMap and ParameterMap like this -=20 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D /parameterMap> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D And I have Java code like this for ThingIbatis -=20 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D import uk.co.package.user_type.FlagANY; public class ThingIbatis implements Comparable { private FlagANY fred =3D FlagANY.N; private Boolean bill =3D FlagYN.getDefaultBoolean(); public FlagANY getFred() { return this.fred; } public Boolean getBill() { return this.bill; } public void setFred(FlagANY fred) { this.fred =3D fred; } public void setBill(Boolean bill) { this.bill =3D bill; } } =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D And I'm still not getting the specific TypeHandler called. The TypeHandlerStringANYEnum works fine for fred, but the TypeHandlerStringYNBoolean is never invoked for bill. I can't see what else I ought to be doing... Cheers Tracey Annison