Has anyone tried implementing a unsupported database to use for jobRepository for Spring Batch?

后端 未结 2 664
灰色年华
灰色年华 2020-12-20 06:37

My database Sap Hana db is not supported for Spring Batch. I am looking for a guide on how to implement my own DAOs for SimpleJobRepository for SpringBatch. Has tried this b

相关标签:
2条回答
  • 2020-12-20 06:55

    I manage to fix the problem above by implementing my own DataFieldMaxValueIncrementerFactory and my own DatabaseType then I autowired the values to SimpleJobServerFactory.

    0 讨论(0)
  • 2020-12-20 07:05

    Spring Batch 3 offers the opportunity to inject custom database types. Check DatabaseType and JobRepositoryFactotyBean.setDatabaseType() (instead of let SB autodetect database type from datasource).
    Of course you need to create scripts for metadata tables creation (use this blog post for an example and official doc)

    0 讨论(0)
提交回复
热议问题