I am trying to read from database and write to a file.
Here is the config i took from one of the samples:
Now I have the items from DB, but all i see in the file the reference address of the Domain Object.
<property name="resource" ref="simpleFileLocator" />
<bean class="org.springframework.batch.item.file.mapping.PassThroughFieldSetMapper" />
I implemented toString method of the domain object, but still no luck. The documentation is also not clear as to how to write to a file.
BTW, i wanted to create a Fixed length file.