From b5f0266931651038029cbd20daa90eba09b64073 Mon Sep 17 00:00:00 2001 From: Sanne Grinovero Date: Tue, 22 Jun 2021 15:31:01 +0100 Subject: [PATCH 1/2] Upgrade to Hibernate ORM 5.5.3.Final --- bom/application/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bom/application/pom.xml b/bom/application/pom.xml index b306141de834a..c35fc4298fd36 100644 --- a/bom/application/pom.xml +++ b/bom/application/pom.xml @@ -94,7 +94,7 @@ 3.12.0 1.15 1.5.1 - 5.5.2.Final + 5.5.3.Final 1.0.0.CR7 6.2.0.Final 6.0.4.Final From 7a7d3f3384d4ada1dc75c13800a3d49b10c3d86b Mon Sep 17 00:00:00 2001 From: Sanne Grinovero Date: Tue, 22 Jun 2021 16:58:04 +0100 Subject: [PATCH 2/2] Disable AvailableSettings.HBM2DDL_SCRIPTS_CREATE_APPEND --- .../orm/runtime/FastBootHibernatePersistenceProvider.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/FastBootHibernatePersistenceProvider.java b/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/FastBootHibernatePersistenceProvider.java index 34858d5c20b04..e57ed4a5f33dd 100644 --- a/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/FastBootHibernatePersistenceProvider.java +++ b/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/FastBootHibernatePersistenceProvider.java @@ -340,6 +340,9 @@ private static void injectRuntimeConfiguration(String persistenceUnitName, runtimeSettingsBuilder.put(AvailableSettings.HBM2DDL_HALT_ON_ERROR, "true"); } + //Never append on existing scripts: + runtimeSettingsBuilder.put(AvailableSettings.HBM2DDL_SCRIPTS_CREATE_APPEND, "false"); + runtimeSettingsBuilder.put(AvailableSettings.HBM2DDL_SCRIPTS_ACTION, persistenceUnitConfig.scripts.generation.generation);