title: How to migrate <dynamic> from ibatis to mybatis
body: <p>I wish to change this from ibatis 2.0</p>
  
  <pre><code>    UPDATE AccountData SET
          StatisticAccountingUnits=   &lt;isNotNull property="statisticAccountingUnits"&gt;#statisticAccountingUnits#&lt;/isNotNull&gt;   &lt;isNull property="statisticAccountingUnits"&gt;null&lt;/isNull&gt;,
          TotalStatisticDays=     &lt;isNotNull property="totalStatisticDays"&gt;#totalStatisticDays#&lt;/isNotNull&gt;   &lt;isNull property="totalStatisticDays"&gt;null&lt;/isNull&gt;,   
      &lt;dynamic&gt;
          &lt;isNotNull property="unitPrice" prepend=", "&gt;UnitPrice = #unitPrice#&lt;/isNotNull&gt;
          &lt;isNotNull property="settlementAnnexNumber" prepend=", "&gt;SettlementAnnexNumber = #settlementAnnexNumber#&lt;/isNotNull&gt;
      &lt;/dynamic&gt;
      WHERE AccountDataID=#accountDataId#
  </code></pre>
  
  <p>to Mybatis version 3.2.7 </p>