Announcement Announcement Module
No announcement yet.
multiLinefile and multiple ineAggregators Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • multiLinefile and multiple ineAggregators


    I am using spring batch to write a fixed length file. So far I managed to write a fixed length single line file and also a multi Line file. I am trying to write a file made up from multiple classes and ineAggregators. Moreover one of the class to write has a list of times which also needs to be presisted. Below is an example of the dummy classes I am using for my POC :

    public class Account{
    	private long accountNumber;
    	private float balance;
    public class personDetails {
    	private String name;
    	private String surname;
    	private String ID;
    	private int age;
    public class Customer extends personDetails{
    	private String customerID;
    	private List<Account> accountList;
    Getters and setters where omitted to increase readability. I would require the file in the following format :

    customerNAme customerSurname

    Account1 balance
    Account2 balance
    account 3 balance

    which sample I could follow from the springbatch samples?

    Last edited by tdi300; Dec 11th, 2009, 09:30 AM.