Relative Content

Tag Archive for spring-dataspring-batch

Spring Batch’s JdbcCursorItemReader just seems harder to use than using plain JdbcTemplate

I have a simple query using the IN clause. However, trying to get the JdbcCursorItemReader to work is a lot harder than it should be. I have tried using the example PreparedStatement option and the queryArguments and neither works. Considering how straight forward it would be to subsitute this with other implements it’s just frustrating to use especially with no concrete examples. I’d appreciate if someone can help me figure this out. The error is p.qualityCodes in (:qualityCodes)) ]: given 1 parameters but expected 0. I also tried using queryParameters(new Object[]{qualityCodes}) with the ? placeholder but that doesn’t work either.