title: Unable to make batch insert into Oracle DB using MyBatis
body: <p>I try to make batch insert into table at Oracle database using MyBatis (integrated with Spring) .</p>
  
  <p>It is a definition of method in mapper interface:</p>
  
  <pre><code>public void savePayments(@Param("payments") List&lt;MassPaymentItem&gt; payments);
  </code></pre>
  
  <p>It is a MyBatis XML mapper code:</p>
  
  <pre><code>&lt;insert id="savePayments" parameterType="MassPaymentFileItem" useGeneratedKeys="false"&gt;
      INSERT INTO mass_payments
          (payment_id, file_id, msisdn, amount, status)
      &lt;foreach collection="payments" item="payment" index="index" separator=" UNION ALL "&gt;
          SELECT SEQ_MASS_PAYMENT.nextval, #{payment.fileId}, #{payment.msisdn}, #{payment.amount}, 0 FROM DUAL
      &lt;/foreach&gt;
  &lt;/insert&gt;
  </code></pre>
  
  <p>When I execute this I receive MyBatisSystemException with message "nested exception is org.apache.ibatis.builder.BuilderException: Improper inline parameter map format.  Should be: #{propName,attr1=val1,attr2=val2}"</p>
  
  <p>What is wrong? How to fix it?</p>