Skip to content

Commit

Permalink
Refine contribution #4187
Browse files Browse the repository at this point in the history
Add resource hints for all supported databases
  • Loading branch information
fmbenhassine committed Sep 12, 2022
1 parent 2f8668d commit 06c2dc3
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
* {@link RuntimeHintsRegistrar} for Spring Batch core module.
*
* @author Glenn Renfro
* @author Mahmoud Ben Hassine
* @since 5.0
*/
public class CoreRuntimeHints implements RuntimeHintsRegistrar {
Expand All @@ -34,6 +35,16 @@ public class CoreRuntimeHints implements RuntimeHintsRegistrar {
public void registerHints(RuntimeHints hints, ClassLoader classLoader) {

hints.resources().registerPattern("org/springframework/batch/core/schema-h2.sql");
hints.resources().registerPattern("org/springframework/batch/core/schema-derby.sql");
hints.resources().registerPattern("org/springframework/batch/core/schema-hsqldb.sql");
hints.resources().registerPattern("org/springframework/batch/core/schema-sqlite.sql");
hints.resources().registerPattern("org/springframework/batch/core/schema-db2.sql");
hints.resources().registerPattern("org/springframework/batch/core/schema-hana.sql");
hints.resources().registerPattern("org/springframework/batch/core/schema-mysql.sql");
hints.resources().registerPattern("org/springframework/batch/core/schema-oracle.sql");
hints.resources().registerPattern("org/springframework/batch/core/schema-postgresql.sql");
hints.resources().registerPattern("org/springframework/batch/core/schema-sqlserver.sql");
hints.resources().registerPattern("org/springframework/batch/core/schema-sybase.sql");

hints.proxies()
.registerJdkProxy(builder -> builder
Expand Down

0 comments on commit 06c2dc3

Please sign in to comment.