From 158ffbd82ef92cf1867c2e631d53d0e10e388101 Mon Sep 17 00:00:00 2001 From: dorav Date: Thu, 27 Jun 2024 09:39:58 +0300 Subject: [PATCH] provider: configure hibernate.boot.allow_jdbc_metadata_access (#32) This PR integrates the changes introduced here: https://github.com/ariga/atlas-provider-hibernate/pull/30 --- hibernate-provider/src/main/kotlin/HibernateProvider.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hibernate-provider/src/main/kotlin/HibernateProvider.kt b/hibernate-provider/src/main/kotlin/HibernateProvider.kt index 0c44fee..1ac5d50 100644 --- a/hibernate-provider/src/main/kotlin/HibernateProvider.kt +++ b/hibernate-provider/src/main/kotlin/HibernateProvider.kt @@ -114,7 +114,8 @@ class PrintSchemaCommand: CliktCommand() { } ?: throw RuntimeException("Unable to load properties file '$properties', is it in the classpath?") } mapOf( - "hibernate.temp.use_jdbc_metadata_defaults" to false, + "hibernate.boot.allow_jdbc_metadata_access" to false, + "hibernate.temp.use_jdbc_metadata_defaults" to false, // deprecated from hibernate 6.5 AvailableSettings.SCHEMA_MANAGEMENT_TOOL to ConsoleSchemaManagementTool(HibernateSchemaManagementTool(), enableTableGenerator), AvailableSettings.CONNECTION_PROVIDER to UserSuppliedConnectionProviderImpl(), ).forEach {