I am working with Spring Batch(using Spring boot). My requirement is to read data from db, process it(validations and stuffs) and write it to a file. I am trying to achieve this using a batch step.
Problem is, if i define a step, the reader,processor and writer should be having similar parameters.(from examples i saw and the error i got) Like if my reader is returning a db domain object, the processor and writer should be having domain object parameters.
What i am looking for is, reader should return domain object, processor should receive domain object and convert it to dto/pojo(after validations and data conversion) and return dto object. Writer should be receiving dto object and write it to file.
Please let me know if that is possible within a single batch step to have different kind of parameters. If so please give me any example/links to it.