title: MyBatis Multiple Resultset with annotation alone
body: <p>As the title suggests I am trying to map multiple result sets with annotations alone heres my scenario.</p>
  
  <p><code>Proc_A</code> returns 3 result sets for these models</p>
  
  <pre><code>org.example.models.ModelA = as Single Result
  org.example.models.ModelB = as List&lt;&gt;
  org.example.models.ModelC = as List&lt;&gt;
  </code></pre>
  
  <p>I know you can do a XML &amp; @Annotation Method like so.</p>
  
  <pre><code>//ExampleMapper.java
  public interface ExampleMapper {
    @Select("EXEC Proc_A #{userID}")
    @ResultMap("getModelA","getModelB","getModelC")
    @Options(statementType = StatementType.CALLABLE)
    List&lt;List&lt;?&gt;&gt; executeProcA(@Param("userID") Integer userID)
  }
  </code></pre>
  
  <p>And Xml</p>
  
  <pre><code>//ExampleMapper.xml
  &lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" &gt;
  &lt;mapper namespace="org.example.mybatis.ExampleMapper" &gt;
      &lt;!-- Result Maps for Proc_A --&gt;
      &lt;resultMap id="getModelA" type="org.example.models.ModelA" /&gt;
      &lt;resultMap id="getModelB" type="org.example.models.ModelB" /&gt;
      &lt;resultMap id="getModelC" type="org.example.models.ModelC" /&gt;
  &lt;/mapper&gt;
  </code></pre>
  
  <p><strong>This works fine in most cases however I would like to know is there a way to do this with only Annotations</strong></p>
  
  <p><em>Update</em></p>
  
  <p>I found <code>@Results</code> and <code>@Result</code> however <code>@Results</code> documentation imlpies it is for one result set. However I did notice in <code>@Result</code> a one and many indicators have yet to find documentation on their use to see if they will help.</p>
  
  <p>Thanks In Advance </p>