Skip to content

Commit

Permalink
provider: configure hibernate.boot.allow_jdbc_metadata_access (#32)
Browse files Browse the repository at this point in the history
This PR integrates the changes introduced here:
#30
  • Loading branch information
dorav authored Jun 27, 2024
1 parent 14c524c commit 158ffbd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hibernate-provider/src/main/kotlin/HibernateProvider.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 158ffbd

Please sign in to comment.