4

Does anybody know how the following xml configuration can be expressed with annotations?

<insert id="insertEmployeeList" parameterType="java.util.List">
INSERT ALL  
<foreach collection="list" item="element" index="index" >
INTO EMPLOYEE (id,name) values (#{element.id},#{element.name})
</foreach>
SELECT * FROM dual
</insert>
Nikolay
  • 1,111
  • 2
  • 12
  • 16
  • possible duplicate of [How to use dynamic SQL query in MyBatis with annotation(how to use selectProvider)?](http://stackoverflow.com/questions/6685655/how-to-use-dynamic-sql-query-in-mybatis-with-annotationhow-to-use-selectprovide) – Nailgun Jun 30 '15 at 19:49
  • Possible duplicate of [How to use Annotations with iBatis (myBatis) for an IN query?](http://stackoverflow.com/questions/3428742/how-to-use-annotations-with-ibatis-mybatis-for-an-in-query) – kdgregory Mar 14 '17 at 00:40

0 Answers0