Skip to content

JpaPagingItemReader shouldn't do any write(flushing) [BATCH-1880] #1712

Open
@spring-projects-issues

Description

@spring-projects-issues

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions