How are you doing you bulk updates? Are you using ExecutorType.BATCH?
Your program is working as it should. The whole point of batches is to
do a whole group of work followed by a single commit. If any statement
in the batch fails, the whole batch fails.
I don't really understand what you are expecting to happen. How can you
execute a batch of 10 statements, and if one of them fails, commit the
other 9? How would you do such a thing in straight JDBC without MyBatis?
--
Guy Rouillier