RE: Problem with using generic and specific custom TypeHandlers

2006-05-17 Thread Tracey Annison
OK, so now we know... For a generic typeHandler, where every occurrence of a special type has the same database representation, we can do it simply and automatically. Specify the fields as the special type in the Java class (ThingIbatis), and add a TypeHandler definition to sql-map-config.xml, a

RE: Problem with using generic and specific custom TypeHandlers

2006-05-15 Thread Tracey Annison
But the specific TypeHandlerStringYNBoolean that I want to make work on just one field doesn't even get called... Cheers Tracey Annison -Original Message- From: Niels Beekman [mailto:[EMAIL PROTECTED] Sent: 15 May 2006 08:32 To: user-java@ibatis.apache.org Subject: RE: Problem with u

RE: Problem with using generic and specific custom TypeHandlers

2006-05-15 Thread Tracey Annison
want to make work on just one field doesn't even get called... Cheers Tracey Annison -Original Message- From: Niels Beekman [mailto:[EMAIL PROTECTED] Sent: 15 May 2006 08:32 To: user-java@ibatis.apache.org Subject: RE: Problem with using generic and specific custom TypeHandlers Are

RE: Problem with using generic and specific custom TypeHandlers

2006-05-15 Thread Niels Beekman
Are you using the DTD for your sqlmap configfile? There is no such element "typeHandlers"... Niels -Original Message- From: Tracey Annison [mailto:[EMAIL PROTECTED] Sent: maandag 15 mei 2006 9:20 To: user-java@ibatis.apache.org Subject: RE: Problem with using generic and speci

RE: Problem with using generic and specific custom TypeHandlers

2006-05-15 Thread Tracey Annison
Cheers Tracey Annison -Original Message- From: Ben Munat [mailto:[EMAIL PROTECTED] Sent: 12 May 2006 16:49 To: user-java@ibatis.apache.org Subject: Re: Problem with using generic and specific custom TypeHandlers Hi Tracey, The other email came without any attachements, so you'll ha

Re: Problem with using generic and specific custom TypeHandlers

2006-05-12 Thread Ben Munat
01 To: user-java@ibatis.apache.org Subject: Re: Problem with using generic and specific custom TypeHandlers Hi Tracey, I used a custom type handler on a project last year (for a boolean field on an AS/400 no less :-) ) and I remember struggling to get it to work. I just went and looked at my ma

RE: Problem with using generic and specific custom TypeHandlers

2006-05-12 Thread Tracey Annison
a look at my files & tell me where I'm going wrong, if I sent them to you personally? I'll owe you a favour, if so! Cheers Tracey Annison -Original Message- From: Ben Munat [mailto:[EMAIL PROTECTED] Sent: 11 May 2006 17:01 To: user-java@ibatis.apache.org Subject: Re: Proble

Re: Problem with using generic and specific custom TypeHandlers

2006-05-11 Thread Ben Munat
Hi Tracey, I used a custom type handler on a project last year (for a boolean field on an AS/400 no less :-) ) and I remember struggling to get it to work. I just went and looked at my map I think you need to create a parameterMap for the query that uses the type handler as well as a result m

Problem with using generic and specific custom TypeHandlers

2006-05-11 Thread Tracey Annison
Hiya! *** I think I sent this wrong earlier - apologies if it duplicates! *** We are using iBATIS with Java against a quirky AS/400 database. We have used custom TypeHandlers successfully to globally map enums against columns holding String codes, but are now trying to map a variety of co