From fb0fcc1f55c6941c037ffef3cfb65a26474b5234 Mon Sep 17 00:00:00 2001 From: Thomas Scheffler Date: Tue, 10 Oct 2023 15:57:57 +0200 Subject: [PATCH] MCR-2647 fix JPA properties in MCRJPATestCase --- .../src/test/java/org/mycore/common/MCRJPATestCase.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mycore-base/src/test/java/org/mycore/common/MCRJPATestCase.java b/mycore-base/src/test/java/org/mycore/common/MCRJPATestCase.java index 32784bb42e..d81bd8a3c3 100644 --- a/mycore-base/src/test/java/org/mycore/common/MCRJPATestCase.java +++ b/mycore-base/src/test/java/org/mycore/common/MCRJPATestCase.java @@ -68,11 +68,11 @@ protected static void printResultSet(ResultSet resultSet, PrintStream out) throw private static void exportSchema(String action) throws IOException { Map schemaProperties = new HashMap<>(); - schemaProperties.put("javax.persistence.schema-generation.database.action", action); + schemaProperties.put("jakarta.persistence.schema-generation.database.action", action); try (StringWriter output = new StringWriter()) { if (LogManager.getLogger().isDebugEnabled()) { - schemaProperties.put("javax.persistence.schema-generation.scripts.action", action); - schemaProperties.put("javax.persistence.schema-generation.scripts." + action + "-target", output); + schemaProperties.put("jakarta.persistence.schema-generation.scripts.action", action); + schemaProperties.put("jakarta.persistence.schema-generation.scripts." + action + "-target", output); } Persistence.generateSchema(getCurrentComponentName(), schemaProperties); LogManager.getLogger().debug(() -> "invoked '" + action + "' sql script:\n" + output);