Using Spring Batch JdbcCursorItemReader with NamedParameters
The Spring Batch JdbcCursorItemReader can accept a preparedStatementSetter : <bean id="reader" class="org.springframework.batch.item.database.JdbcCursorItemReader"> <property name="dataSource" ref="..." /> <property name="sql" value="SELECT * FROM test WHERE col1 = ?"> <property name="rowMapper" ref="..." /> <property name="preparedStatementSetter" ref="..." /> </bean> This works well if the sql uses ? as placeholder(s), as in the above example. However, our pre-existing sql uses named parameters, e.g. SELECT * FROM test WHERE col1 = :param . Is there a way to get a JdbcCursorItemReader to