I'm using Spring batch 5 & I have a usecase where I need to group the input records (from database) based on bookingId
. Now the processor should pick the records group by group from the reader output. Also, the writer should write output group by group.
How can we achieve this with RepositoryItemReader
. I'm struggling to find a sample code for Spring Batch 5. It's a shame that there are no enough samples on this standard usecase. I would appreciate your help in this, in case you have worked on similar usecases.