Pseudo batch update with CASE should work on any data base.
authorgu.martinm@gmail.com <gu.martinm@gmail.com>
Wed, 4 Mar 2015 10:58:41 +0000 (11:58 +0100)
committergu.martinm@gmail.com <gu.martinm@gmail.com>
Wed, 4 Mar 2015 10:58:41 +0000 (11:58 +0100)
MyBatis/MyBatis-Spring/src/main/resources/de/example/mybatis/repository/mapper/AdCustomMapper.xml

index b51bd4a..6ad3b3f 100644 (file)
@@ -20,7 +20,8 @@
                </foreach>
   </update>
   
-    <update id="updateAdsBatchWithCase" parameterType="List">          
+    <update id="updateAdsBatchWithCase" parameterType="List">
+       <!-- The same as updateAdsBatch but it doesn't require allowMultiQueries=true -->
                UPDATE ad
                        SET
                        company_id = CASE id