title: Migration from Ibatis to MyBatis
body: <p>i am migrating ibatis to mybatis, and i have the following code:</p>
  
  <pre><code>    &lt;dynamic prepend="AND SDLG.COD_N_TIPO_LIMITE_GEOGRAFICO IN"&gt;
          &lt;isEqual property="incluirLimitesGeograficos" compareValue="true"&gt;
              &lt;isNotEmpty property="listaLimitesGeograficos"&gt; 
                      &lt;iterate property="listaLimitesGeograficos" open="(" close=")" conjunction="," &gt;                
                          &lt;isNotNull property="listaLimitesGeograficos[].codTipoLimiteGeo"&gt;
  
                              #listaLimitesGeograficos[].codTipoLimiteGeo:DECIMAL#    
  
                          &lt;/isNotNull&gt;
                      &lt;/iterate&gt;
              &lt;/isNotEmpty&gt;
          &lt;/isEqual&gt;
  </code></pre>
  
  <p></p>
  
  <p>I do it like this, and i want to know if its correct:</p>
  
  <pre><code>        AND SDLG.COD_N_TIPO_LIMITE_GEOGRAFICO IN
          &lt;if test="incluirLimitesGeograficos"&gt;
              &lt;!--
      Sorry, I can`t migrate  listaLimitesGeograficos
      See console output for further details 
  --&gt;
              &lt;if test="listaLimitesGeograficos != null and listaLimitesGeograficos.size() &gt; 0"&gt; 
                      &lt;foreach collection="listaLimitesGeograficos" item="item" open="(" close=")" separator="," &gt;                
                          &lt;if test="item.codTipoLimiteGeo != null"&gt;
  
                              #{item.codTipoLimiteGeo, jdbcType=DECIMAL}
  
                          &lt;/if&gt;
                      &lt;/foreach&gt;
              &lt;/if&gt;
          &lt;/if&gt;
  </code></pre>
  
  <p>Thank you.</p>