title: MyBatis: Map String to boolean
body: <p>I have booleans inserted in my database as Y/N. When I try to map the result to a boolean java type, it always set it to a false in any case in my pojo.</p>
  
  <p>Is there any way to map String to boolean? Here's my code:</p>
  
  <pre><code>&lt;resultMap id="getFlag" type="MyPojo"&gt;
      &lt;result property="myFlag" column="MY_FLAG"/&gt;
  &lt;/resultMap&gt;
  </code></pre>