Hi, Could you post the actual typehandler code and the piece of SQLMap where you use it?
-----Original Message----- From: Paul Allen [mailto:[EMAIL PROTECTED] Sent: woensdag 3 mei 2006 18:32 To: [email protected] Subject: boolean type handler I've seen some threads that describe how to make a custom type handler to map from a Boolean bean property to a CHAR SQL type and I've implemented one version of them. What I am trying to get is this mapping: object property value --> DB value Boolean.TRUE --> "1" Boolean.FALSE --> "0" null --> null However I keep coming up with the same problem, by the time the setParameter(ParameterSetter setter, Object parameter) method of my handler is called, the parameter is always a Boolean object, even when I think it should be null because the Boolean the property from my bean is null. Is there anyway around this?
