Spring batch
Not sure how to implement this but requirements are let's say we have condition A/B:
If it's A - I have to update/delete/insert in tables D/E/F
If it's B - I have to update/delete/insert in tables G/H/I
The transaction should be done in a single transaction, meaning that under condition A, I have to finish updating all 3 tables - D, E, F. In case any table fails, this transaction shouldn't be partially done.
Was thinking of classifier + composite item writer but not sure if it's a single transaction.