I have two databases, Oracle and MySQL. The target is saving value from a table in Oracle into MySQL, with the requirement: data does not exist in MySQL table.
But I had trouble understanding spring batch. In step, it contains itemReader, itemProcessor, and itemWriter. If my understanding is correct, a step only can have single itemReader (cmiiw)
My plan is to make 2 steps:
Step 1. List from MySQL table
Step 2. Compare T from Oracle with List (step 1) using a primary key ex: id.
If the approach is correct, My question is: how make a List in step? and how passing it into step 2?
I kindly need guidance in this, thank you