I ma new to spring batch, I just want to ask how can I retrieve data from multiple rows of result set. I have the following scenario :
- There are two different table say employee & payroll.
- An employee can have multiple payroll on the basis of some ID.
- I have used query
select * from emp,pay whem emp.id=pay.id & emp.id = "id"
. - Now it returns multiple row and I have to create an xml
The xml structure is :
<EMP> .... ... <Payroll> . . . </Payroll> <Payroll> . . . </Payroll> </emp>
While using RowMapper
I can only create One payroll child but the table may have multiple childs. Please help...