title: MyBatis:collection via annotation in one query
body: <p>I have an xml mapper - one select and one result mapper. It works without problems. But I want to use annotations. My mapper:</p>
  
  <pre><code>  &lt;resultMap id="readItemsRM" type="com.company.Item"&gt;
     &lt;id property="id" column="Id"/&gt;
      &lt;result property="comment" column="Comment"/&gt;
      &lt;collection property="textItems" ofType="com.company.TextItem"&gt;
          &lt;id property="id" column="TxId"/&gt;
          &lt;result property="name" column="TxName"/&gt;
        &lt;/collection&gt;
      &lt;/resultMap&gt;
  </code></pre>
  
  <p>So I did like this</p>
  
  <pre><code>   @Results({
          @Result(id=true, property="id", column="Id"),
          @Result(property="comment", column="Comment"),
          ///,???        
      })
     public List&lt;Item&gt; select();
  </code></pre>
  
  <p>I can't understand how can I map my collection via annotation without executing one more sql query. As all the examples I found suppose executing one more query. Please help.</p>