I have a system with hundreds of tables that I would like to use a
custom string handler.  It will insert empty string instead of null
for both varchar and text dbTypes.  I specify it in the SqlMap.config
file and it works great.

<typeHandler
        type="string"
        dbType="varchar"
        callback="Foo.EmtpyStringToNull, Foo"/>
<typeHandler
        type="string"
        dbType="text"
        callback="Foo.EmtpyStringToNull, Foo"/>

Now on one table I need to revert back to the way the normal usage
(Null string inserts Null).  How can I do this?  Do I need to create a
custom handler to revert back or can I somehow tell iBatis to use the
standard handler in the parameter map?  I need this for a procedure,
so inline will not work.

Thanks
Mike

Reply via email to