Announcement Announcement Module
Collapse
No announcement yet.
Support for injecting "custom" database populator in jdbc namespace. Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Support for injecting "custom" database populator in jdbc namespace.

    Currently, jdbc namespace takes
    1. datasource
    2. and list of scripts as input.

    I recently stumbled on pre-processing some data before inserting. Solution for that was, to use custom DatabasePopulator (extension of existing one)

    Refer: org.springframework.jdbc.datasource.init.DatabaseP opulator

    I was hoping, "jdbc:initialize-database" get enhanced to accept custom implementations too.

    Is there any way?

    One way is, to use bean
    org.springframework.jdbc.datasource.init.DataSourc eInitializer
Working...
X