I think I spotted a mistake in Spring's documentation. Is there a formalized way of reporting document errors, e.g. via JIRA?
The mistake is located in "13.4.3 Batch operations with multiple batches" - http://static.springsource.org/sprin...bc-batch-multi
The given example currently reads
but probably should readCode:... int[][] updateCounts = jdbcTemplate.batchUpdate( "update t_actor set first_name = ?, last_name = ? where id = ?", actors, 100, new ParameterizedPreparedStatementSetter<Actor>() { ...
Notice "actors" vs. "batch". Compare to the method's Javadoc at http://static.springsource.org/sprin...atementSetter)Code:... int[][] updateCounts = jdbcTemplate.batchUpdate( "update t_actor set first_name = ?, last_name = ? where id = ?", batch, 100, new ParameterizedPreparedStatementSetter<Actor>() { ...
In case there currently is no way of reporting document errors, what about establishing such a thing?


Reply With Quote