You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
JpaItemWriter description in Appendix of documentation is wrong #5556
The appendix in the reference documentation has the following to say about JpaItemWriter
This item writer is JPA EntityManager-aware and handles some transaction-related work that a non-“JPA-aware” ItemWriter would not need to know about and then delegates to another writer to do the actual writing.
I have the following issues with this:
The only really transaction related thing it's doing is getting a transactional EntityManager
It does not actually delegate to another writer, it either calls EntityManager#persist or EntityManager#merge
Hi, I'd be happy to fix this. I'd reword the JpaItemWriter row in the appendix to match what the writer does: it gets the transactional EntityManager, calls persist or merge for each item the EntityManager doesn't already manage, and flushes at the end of each chunk. The part about delegating to another writer would go. If that sounds right, I'll open a PR.
changed the title [-]JpaItemWriter descrition in Appendix of documentation is wrong[/-][+]JpaItemWriter description in Appendix of documentation is wrong[/+]on Oct 22, 2026
Activity
Akhil-1527 commentedon Sep 26, 2026
Hi, I'd be happy to fix this. I'd reword the
JpaItemWriterrow in the appendix to match what the writer does: it gets the transactionalEntityManager, callspersistormergefor each item theEntityManagerdoesn't already manage, and flushes at the end of each chunk. The part about delegating to another writer would go. If that sounds right, I'll open a PR.marschall commentedon Sep 26, 2026
Sounds about right, you could add that it optionally calls
clearon theEntityManagerafter each chunk.Fix JpaItemWriter description in the appendix
Fix JpaItemWriter description in the appendix
[-]JpaItemWriter descrition in Appendix of documentation is wrong[/-][+]JpaItemWriter description in Appendix of documentation is wrong[/+]