Mybatis foreach with annotations
Does anyone know how the following xml configuration with annotations can be expressed?
<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>
+3
source to share
No one has answered this question yet
See similar questions:
or similar: