title: How to use mybatis mapper interface with generic type (BaseMapper<T>)?
body: <p>I am in using mybatis 3.2.2, and all mapper interface extends a base interface, code like this:
  base interface:</p>
  
  <pre><code>public interface BaseMapper&lt;T&gt;{
     public int insert(T record);
     public int insertSelective(T record);
  }
  
  public interface JobMapper extends BaseMapper&lt;Job&gt;{
  }
  </code></pre>
  
  <p>then i test the inert method, </p>
  
  <pre><code>jobMapper.insert(job);
  </code></pre>
  
  <p>the error is :</p>
  
  <pre><code>java.lang.NoSuchMethodError: com.xxx.framework.dao.ifaces.JobMapper.insert(Lcom/xxx/framework/model/Job;)I
  </code></pre>
  
  <p>But if like this:</p>
  
  <pre><code>public interface BaseMapper{
     public int insert(Job record);
     public int insertSelective(Job  record);
  }
  
  public interface JobMapper  extends BaseMapper{
  }
  </code></pre>
  
  <p>the result is correct.</p>
  
  <p>I really want to use generic base interface to implements some common method, like  add,update,delete etc.
  Can someone tell me ?</p>