I found statement.executeBatch() in org.hibernate.engine.jdbc.batch.internal.BatchingBatch line 123 returns [3,3,3], but it should be [1,1,1],maybe it's mysql jdbc driver or bonecp connection pool bug