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?