mybatis foreach with annotations

2.3k views Asked by At

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>
0

There are 0 answers