Results 1 to 1 of 1

Thread: multiLinefile and multiple ineAggregators

  1. #1
    Join Date
    Dec 2009
    Posts
    5

    Default multiLinefile and multiple ineAggregators

    all,

    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 :

    Code:
     
    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?

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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •