Sabir Khan
Sabir Khan

Reputation: 10132

dropping of meta data tables by spring batch

In Spring Batch , when are meta data tables dropped?

I see drop sql file at - /org/springframework/batch/core/... but not sure if its some trigger from program ( Batch Job itself ) that drops these tables or these tables need to be dropped manually or does it have anything to do with batch admin?

Upvotes: 1

Views: 1843

Answers (2)

Wiszh
Wiszh

Reputation: 511

The meta data tables are not created automatically nor are they dropped automatically.

You need to do it yourself once. (This can be automated if necessary but need not be.)

Spring boot does provide a facility that automatically will create the tables needed, but that is not part of the native Spring Batch functionality.

Upvotes: 0

Luca Basso Ricci
Luca Basso Ricci

Reputation: 18403

I suppose they are never dropped automatically but a manual action is always required (from SB admin) or from your application (as part of your application service layer)

Upvotes: 1

Related Questions