Results 1 to 3 of 3

Thread: Flat File to Database

  1. #1
    Join Date
    Nov 2012
    Location
    Coimbatore
    Posts
    2

    Question Flat File to Database

    Hi,

    I'm reading the data from the flat file & inserting into DB with batch process.

    Definition of table & the column are defined in Config file as it may vary.

    I want to know how we need define the setter for these values or is there any other way to handle this.

    Thanks

  2. #2
    Join Date
    Sep 2008
    Location
    Chicagoland, IL
    Posts
    349

    Default

    Your domain objects should be regular POJOs...attributes with getter/setter methods as usual. Nothing extra should be needed.
    Michael Minella
    Spring Batch Lead
    Author - Pro Spring Batch
    http://www.michaelminella.com
    Twitter: @MichaelMinella

  3. #3
    Join Date
    Nov 2012
    Location
    Coimbatore
    Posts
    2

    Default

    Hi mminella,

    Thanks for your reply.

    Regular POJO is working fine for me. But my batch process is for Metadata Tables which may vary with its column. So i have to handle this generically Is it best to user NamedParameters, bze all my values are in list of Map with key as its column & value contains corresponding value attribute.

Posting Permissions

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