Uploaded image for project: 'iBatis for Java [READ ONLY]'
  1. iBatis for Java [READ ONLY]
  2. IBATIS-244

CLONE -configured type handler not used in insert

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.1.0
    • 2.3.3
    • Core
    • None
    • linux, java 1.5

    Description

      Custom type handlers which are configured within SqlMapConfig, such as:

      <typeHandler javaType='java.lang.Boolean' jdbcType='CHAR' callback='com...BooleanTypeHandler'/>

      are working properly and automatically to convert types for queries. However for inserts, the type conversion is not being called based on the above type handler mapping. We have confirmed this behavior by placing debug print statements in the methods of the type handler being used.

      What does work, and what we're currently using as a workaround, is to use an explicit, inline type handler within the insert map (such as #private,handler=com...BooleanTypeHandler#).

      Attachments

        1. PrimitivePrefix.patch
          2 kB
          Iwao AVE!

        Issue Links

          Activity

            People

              cbegin Clinton Begin
              somakani somakani
              Votes:
              3 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: