I am trying to read from database and write to a file.
Here is the config i took from one of the samples:

Code:
<bean class="org.springframework.batch.item.file.FlatFileItemWriter"
id="fileItemWriter">
      <property name="resource" ref="simpleFileLocator" />
      <property name="fieldSetCreator">
         <bean class="org.springframework.batch.item.file.mapping.PassThroughFieldSetMapper" />
      </property>
</bean>
Now I have the items from DB, but all i see in the file the reference address of the Domain Object.

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.