posted 9 years ago
Hello,
I have a requirement to insert data into two tables using JdbcBatchItemWriter.
I have two tables TABLE_A, TABLE_B.
TABLE_B is child of TABLE_A with Foreign Key Relation. I am successful on inserting data using this batch writer to TABLE_A.
However, due to FK constraint, I cannot know the FK value to insert in TABLE_B.
Please let me know if there is a way to get the primary key values for the records inserted in TABLE_A during the process so that I can build a object and itemwrite into TABLE_B.