title: MyBatis : is it possible to set typeAlias in xml mapper?
body: <p>The <a href="http://mybatis.org/dtd/mybatis-3-mapper.dtd" rel="nofollow">DTD file</a> has such element.</p>
  
  <blockquote>
    <p>&lt;!ELEMENT typeAlias EMPTY&gt;<br> &lt;!ATTLIST typeAlias <br>alias CDATA #REQUIRED<br>
    type CDATA #REQUIRED
    &gt;</p>
  </blockquote>
  
  <p>However according to DTD I can't understand what is its parent element. I tried to use this way:</p>
  
  <pre><code>&lt;typeAlias alias="..." type="..." /&gt;
  &lt;mapper namespace="...."&gt;
  &lt;/mapper&gt;
  </code></pre>
  
  <p>and this way:</p>
  
  <pre><code>&lt;mapper namespace="...."&gt;
    &lt;typeAlias alias="..." type="..." /&gt;
  &lt;/mapper&gt;
  </code></pre>
  
  <p>but I get errors. So the question - is it possible to use aliases in mapper and if yes will they be linked only to current mapper?</p>