0

Hello i'm new using Spring Batch, I've a problem where i work, we have one .Txt file where just one line has data to be insert in 3 diferent tables, its possible to do using spring batch? Or is just better to insert all data in a single table and then use sql do join this data?

Thank you.

  • 1
    Yes - consider using a `CompositeItemWriter`, where each writer handles a different table (Repository). [Here](https://stackoverflow.com/questions/18915688/multiple-itemwriters-in-spring-batch) is a related answer. – Andrew S Apr 30 '21 at 20:11
  • Does this answer your question? [Multiple itemwriters in Spring batch](https://stackoverflow.com/questions/18915688/multiple-itemwriters-in-spring-batch) – Mahmoud Ben Hassine May 03 '21 at 09:43

0 Answers0