Spring Batch - write to 2 tables at once
问题 I have a Person object that has a list of addresses. My Spring Batch app converts Person JSON recors into Person POJOs and writes them to a database. Ordinarily, I'd use JdbcBatchItemWriter but I see it is limited in writing to 2 seperate tables. I need to write to Person and Address table. Hibernate could write this in one step but I don't see a simialr capability in Spring Bathc. This SO question Multiple itemwriters in Spring batch suggests using a CompositeItemWriter but the issue with