Changed restartQuery back to restartSql to be consistent with related single column case.

This commit is contained in:
dsyer
2008-02-04 15:31:04 +00:00
parent c96c619d26
commit 8773b55f8b
3 changed files with 3 additions and 3 deletions

View File

@@ -32,7 +32,7 @@ public class MultipleColumnJdbcDrivingQueryItemReaderIntegrationTests extends
new MultipleColumnJdbcKeyGenerator(getJdbcTemplate(),
"SELECT ID, VALUE from T_FOOS order by ID, VALUE");
keyGenerator.setRestartQuery("SELECT ID, VALUE from T_FOOS where ID > ? and VALUE > ? order by ID");
keyGenerator.setRestartSql("SELECT ID, VALUE from T_FOOS where ID > ? and VALUE > ? order by ID");
DrivingQueryItemReader inputSource = new DrivingQueryItemReader();
inputSource.setKeyGenerator(keyGenerator);
FooItemReader fooItemReader = new FooItemReader(inputSource, getJdbcTemplate());

View File

@@ -29,7 +29,7 @@ public class MultipleColumnJdbcKeyGeneratorIntegrationTests extends AbstractTran
keyStrategy = new MultipleColumnJdbcKeyGenerator(getJdbcTemplate(),
"SELECT ID, VALUE from T_FOOS order by ID");
keyStrategy.setRestartQuery("SELECT ID, VALUE from T_FOOS where ID > ? and VALUE > ? order by ID");
keyStrategy.setRestartSql("SELECT ID, VALUE from T_FOOS where ID > ? and VALUE > ? order by ID");
}
public void testRetrieveKeys(){