Skip to content
This repository was archived by the owner on Feb 23, 2023. It is now read-only.

Commit 835b5ae

Browse files
mminellasdeleuze
authored andcommitted
Add all Spring Batch schemas
This commit adds all of the Spring Batch repository schemas to a given native image, making them available for consumption. Resolves #669
1 parent f683e44 commit 835b5ae

File tree

1 file changed

+12
-1
lines changed
  • spring-native-configuration/src/main/java/org/springframework/batch/core/configuration/annotation

1 file changed

+12
-1
lines changed

spring-native-configuration/src/main/java/org/springframework/batch/core/configuration/annotation/BatchHints.java

+12-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,18 @@
2929
import org.springframework.nativex.type.NativeConfiguration;
3030

3131
@NativeHint(trigger=BatchConfigurationSelector.class,
32-
resources = @ResourceHint(patterns = "org/springframework/batch/core/schema-h2.sql"),
32+
resources = @ResourceHint(patterns = {"org/springframework/batch/core/schema-h2.sql",
33+
"org/springframework/batch/core/schema-db2.sql",
34+
"org/springframework/batch/core/schema-derby.sql",
35+
"org/springframework/batch/core/schema-hsqldb.sql",
36+
"org/springframework/batch/core/schema-mysql.sql",
37+
"org/springframework/batch/core/schema-oracle10g.sql",
38+
"org/springframework/batch/core/schema-postgresql.sql",
39+
"org/springframework/batch/core/schema-sqlf.sql",
40+
"org/springframework/batch/core/schema-sqlite.sql",
41+
"org/springframework/batch/core/schema-sqlserver.sql",
42+
"org/springframework/batch/core/schema-sybase.sql"
43+
}),
3344
types = {
3445
@TypeHint(types = AbstractDataSourceInitializer.class , access = AccessBits.LOAD_AND_CONSTRUCT | AccessBits.DECLARED_METHODS),
3546
@TypeHint(types = {

0 commit comments

Comments
 (0)