Merge branch '2.7.x'

This commit is contained in:
Stephane Nicoll 2022-02-04 09:54:11 +01:00
commit 8885964a56
3 changed files with 2 additions and 4 deletions

View File

@ -233,7 +233,7 @@ class BatchAutoConfigurationTests {
.withUserConfiguration(TestConfiguration.class, EmbeddedDataSourceConfiguration.class,
HibernateJpaAutoConfiguration.class)
.withPropertyValues("spring.datasource.generate-unique-name=true",
"spring.batch.jdbc.schema:classpath:batch/custom-schema-hsql.sql",
"spring.batch.jdbc.schema:classpath:batch/custom-schema.sql",
"spring.batch.jdbc.tablePrefix:PREFIX_")
.run((context) -> {
assertThat(context).hasSingleBean(JobLauncher.class);

View File

@ -73,7 +73,7 @@ class BatchAutoConfigurationWithoutJpaTests {
void jdbcWithCustomPrefix() {
this.contextRunner.withUserConfiguration(DefaultConfiguration.class, EmbeddedDataSourceConfiguration.class)
.withPropertyValues("spring.datasource.generate-unique-name=true",
"spring.batch.jdbc.schema:classpath:batch/custom-schema-hsql.sql",
"spring.batch.jdbc.schema:classpath:batch/custom-schema.sql",
"spring.batch.jdbc.tablePrefix:PREFIX_")
.run((context) -> {
assertThat(new JdbcTemplate(context.getBean(DataSource.class))

View File

@ -1,5 +1,3 @@
-- Autogenerated: do not edit this file
CREATE TABLE PREFIX_JOB_INSTANCE (
JOB_INSTANCE_ID BIGINT IDENTITY NOT NULL PRIMARY KEY ,
VERSION BIGINT ,