From 5c39f1beb729884cfab3149f1607431cfa7056ba Mon Sep 17 00:00:00 2001 From: Georgios Andrianakis Date: Tue, 12 Oct 2021 12:48:51 +0300 Subject: [PATCH] Apply another fix for Multiple entries Hibernate ORM DevUI entry Fixes: #20683 (cherry picked from commit 727877c5d00cab3e11275683295319cd1277a362) --- .../runtime/devconsole/HibernateOrmDevConsoleInfoSupplier.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/devconsole/HibernateOrmDevConsoleInfoSupplier.java b/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/devconsole/HibernateOrmDevConsoleInfoSupplier.java index 895182ae9e072..e95e27c2253d7 100644 --- a/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/devconsole/HibernateOrmDevConsoleInfoSupplier.java +++ b/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/devconsole/HibernateOrmDevConsoleInfoSupplier.java @@ -62,6 +62,9 @@ public static void clearData() { INSTANCE.persistenceUnits.clear(); INSTANCE.createDDLs.clear(); INSTANCE.dropDDLs.clear(); + INSTANCE.managedEntities.clear(); + INSTANCE.namedQueries.clear(); + INSTANCE.namedNativeQueries.clear(); } private static String generateDDL(SchemaExport.Action action, Metadata metadata, ServiceRegistry serviceRegistry,