title: MyBatis custom TypeHandler not executed when put in <result> tag
body: <p>I have a <code>&lt;resultMap&gt;</code> with custom <code>typeHandler</code> for one of the result properties:</p>
  
  <pre><code>&lt;resultMap id="foo" type="hashmap"&gt;
      ... 
      &lt;result property="SERVICES_XML" javaType="string" jdbcType="CLOB" typeHandler="com.foo.bar.OracleClobTypeHandler" /&gt;
      ...
  &lt;/resultMap&gt;
  </code></pre>
  
  <p>No matter which property I attach my handler to (I mean this is <strong>not CLOB-specific issue</strong>, tried with <code>VARCHAR</code>, too), the handler won't get called when I fetch results from database.</p>
  
  <p>I have set breakpoints in all methods of my custom handler:</p>
  
  <pre><code>public class OracleClobTypeHandler implements TypeHandler&lt;String&gt; {
  
    @Override
    public void setParameter(PreparedStatement ps, int i, String parameter, JdbcType jdbcType) throws SQLException {
      log.debug("setParameter called");   &lt;================ BREAKPOINT HERE
    }
  
    @Override
    public String getResult(ResultSet rs, String columnName)
          throws SQLException {
      log.debug("getResult 2 called");    &lt;================ BREAKPOINT HERE
      return "";
    }
  
    @Override
    public String getResult(ResultSet rs, int columnIndex)
          throws SQLException {
      log.debug("getResult 2 called");    &lt;================ BREAKPOINT HERE
      return "";
    }
  
    @Override
    public String getResult(CallableStatement cs, int columnIndex)
          throws SQLException {
      log.debug("getResult 3 called");    &lt;================ BREAKPOINT HERE
      return "";
    }
  }
  </code></pre>
  
  <p>Clearly none of the above methods is executed.</p>
  
  <p>I've tried to put <code>&lt;typeHandler javaType="java.lang.String" jdbcType="CLOB" handler="com.foo.bar.OracleClobTypeHandler"/&gt;</code> in myBatis <code>&lt;configuration&gt;</code>, but this didn't work too.<br>
  Neither did anything else, including extending <code>TypeHandler&lt;Object&gt;</code> and so on.</p>
  
  <p>What am I doing wrong?</p>