title: Mybatis - Inherited properties not being mapped
body: <p>I have two classes where one inherits the other. I'm trying to map my resultSet to the subclass and Mybatis is ignoring the properties on the superclass (Setters also on the superclass)</p>
  
  <p>Code is as below:</p>
  
  <pre><code>public class CocTreeNode extends CocBean implements TreeNode&lt;CocTreeNode&gt; {
  
    private String level1, level2;
  
    public void setLevel1(String level1){...}
    public void setLevel2(String level2){...}
  
    public String getLevel1(){...}
    public String getLevel1(){...}
  
  }
  
  public class CocBean {
  
    protected String name;
    protected Double volume;
  
    public void setName(String name){...}
    public void setVolume(Double volume){...}
  
    public String getName(){...}
    public Double getVolume(){...}
  
  }
  </code></pre>
  
  <p>My resultMap is -</p>
  
  <pre><code>&lt;resultMap id="simpleRow" type="CocTreeNode"&gt;
    &lt;id property="level1" column="LEVEL1"/&gt;
    &lt;id property="level2" column="LEVEL2"/&gt;
    &lt;result property="name" column="NAME"/&gt;
    &lt;result property="volume" column="VOLUME"/&gt;
  &lt;/resultMap&gt;
  </code></pre>
  
  <p>The resulting CocTreeNode objects are populated with 'level1' and 'level2' attributes but not 'name' and 'volume'.</p>
  
  <p>I have tried using extends but that didn't make any difference.</p>
  
  <p>Any ideas will be appreciated.</p>