title: Get HashMap as Result for select
body: <p>Hi i want query database with myBatis and want return Map</p>
  
  <p>I have daoInterface Like</p>
  
  <pre><code>public interface IDocDao extends IBasicDao {
      public Map&lt;Integer, Integer&gt; getDocByA();
  }
  </code></pre>
  
  <p>And mapper
      
          
          
      </p>
  
  <pre><code>&lt;select id="getDocByA" resultMap="myHashMap"&gt;
      SELECT b_id, count(1) AS count FROM table_a GROUP BY b_id
  &lt;/select&gt;
  </code></pre>
  
  <p>And need to return 1 map with all this values, not List of Maps</p>
  
  <p>thx. Pavel</p>