title: Spring Batch Item Reader Reading Same Items Multiple Times
body: <p>I am using a <code>JpaPagingItemReader</code> and I noticed that it is reading the same rows more than once. In the documentation it does say that "Caller might get the same item twice from successive calls (or otherwise), if the first call was in a transaction that rolled back." but when I checked the roll back count it was 0. I added all listeners with logs in each method and the reading, processing and writing all complete successfully (<code>onError()</code> is never called). What could be causing the loading of the same item more than once?</p>
  
  <p>UPDATE:
  The JPAPagingItemReader is configured as follows</p>
  
  <pre><code>&lt;bean id="reader" class="org.springframework.batch.item.database.JpaPagingItemReader" scope="step" p:entityManagerFactory-ref="entityManagerFactory" &gt;
          &lt;property name="queryString" value="SELECT item FROM Item item WHERE item.batchId = #{jobParameters[batchId]}"/&gt;
  &lt;/bean&gt;
  </code></pre>