Open
Description
Davi Alves opened BATCH-1880 and commented
Taking a look at the JpaPagingItemReader source code and it Javadoc:
If you make changes to the entities and want the changes persisted then you must explicitly merge the entities.
But doesn't this go against the framework idea? The reader shouldn't do any write, only a clear should be enough. Otherwise will happen like here: http://forum.springsource.org/showthread.php?128667-Problem-with-JpaPagingItemReader-and-pageSize&p=420261#post420261
Flush in the Writer and in the Reader.
Affects: 2.1.8
Reference URL: http://forum.springsource.org/showthread.php?128667-Problem-with-JpaPagingItemReader-and-pageSize