Announcement Announcement Module
No announcement yet.
Creating Job Repository Tables Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Creating Job Repository Tables

    So, looking through the docs it looks like the way to set up the Job Repository Tables is to use the provided *.sql scripts. Is there a way that JobRepositoryFactoryBean can run those scripts? I don't think so, but I'm just wondering if there's some sort of built-in factory or utility I'm missing to set up these tables. Also, if I wanted to create those tables with a given prefix, how is the best way to do that? I see how JobRepositoryFactoryBean takes in a prefix... but that won't create the tables with the prefix, correct?
    Thanks for the help!

  • #2
    You can probably paste the script into your database's command line interface.

    The spring-batch-test project contains a class DataSourceInitializer that can be used to create the tables at runtime. It's what we use for the samples.