BATCH-949: updated docs for rowMapper property change

This commit is contained in:
trisberg
2009-02-16 14:46:30 +00:00
parent 46e67ab1cb
commit 8dde9b46f8

View File

@@ -1946,7 +1946,7 @@
JdbcCursorItemReader itemReader = new JdbcCursorItemReader();
itemReader.setDataSource(dataSource);
itemReader.setSql("SELECT ID, NAME, CREDIT from CUSTOMER");
itemReader.setMapper(new CustomerCreditRowMapper());
itemReader.setRowMapper(new CustomerCreditRowMapper());
int counter = 0;
ExecutionContext executionContext = new ExecutionContext();
itemReader.open(executionContext);
@@ -1977,7 +1977,7 @@
<bean id="itemReader" class="org.springframework.batch.item.database.JdbcCursorItemReader">
<property name="dataSource" ref="dataSource"/>
<property name="sql" value="select ID, NAME, CREDIT from CUSTOMER"/>
<property name="mapper">
<property name="rowMapper">
<bean class="org.springframework.batch.sample.domain.trade.internal.CustomerCreditRowMapper"/>
</property>
</bean>
@@ -2534,7 +2534,7 @@
<bean id="playerSummarizationSource"
class="org.springframework.batch.item.database.JdbcCursorItemReader">
<property name="dataSource" ref="dataSource" />
<property name="mapper">
<property name="rowMapper">
<bean class="org.springframework.batch.sample.mapping.PlayerSummaryMapper" />
</property>
<emphasis role="bold">&lt;property name="saveState" value="false" /&gt;</emphasis>