Announcement Announcement Module
Collapse
No announcement yet.
Flat File to Database Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    Your domain objects should be regular POJOs...attributes with getter/setter methods as usual. Nothing extra should be needed.

    Comment


    • #3
      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.

      Comment

      Working...
      X