aboutsummaryrefslogtreecommitdiffstats
path: root/models-provider/src/main
diff options
context:
space:
mode:
authoradheli.tavares <adheli.tavares@est.tech>2024-02-20 14:33:26 +0000
committeradheli.tavares <adheli.tavares@est.tech>2024-02-21 11:00:35 +0000
commit389c85c8e7213c10c17896f4c63d94e2b5e9d27a (patch)
tree1a54214282acaa444c9ce36b5cf8dc7310296640 /models-provider/src/main
parent107b75a2b584222f7d5dcdbec64063c036b4f2b2 (diff)
Fix config files to remove outdated configuration for hibernate
Issue-ID: POLICY-4929 Change-Id: Icd796030753c505c99c1840d8d11fb2f8300c15e Signed-off-by: adheli.tavares <adheli.tavares@est.tech>
Diffstat (limited to 'models-provider/src/main')
-rw-r--r--models-provider/src/main/java/org/onap/policy/models/provider/impl/ModelsProvider.java7
1 files changed, 1 insertions, 6 deletions
diff --git a/models-provider/src/main/java/org/onap/policy/models/provider/impl/ModelsProvider.java b/models-provider/src/main/java/org/onap/policy/models/provider/impl/ModelsProvider.java
index 527f0ddee..4d8869752 100644
--- a/models-provider/src/main/java/org/onap/policy/models/provider/impl/ModelsProvider.java
+++ b/models-provider/src/main/java/org/onap/policy/models/provider/impl/ModelsProvider.java
@@ -1,6 +1,6 @@
/*-
* ============LICENSE_START=======================================================
- * Copyright (C) 2021, 2023 Nordix Foundation.
+ * Copyright (C) 2021, 2023-2024 Nordix Foundation.
* ================================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -45,16 +45,11 @@ public final class ModelsProvider {
daoParameters.setPluginClass(DefaultPfDao.class.getName());
daoParameters.setPersistenceUnit(parameters.getPersistenceUnit());
- // @formatter:off
var jdbcProperties = new Properties();
jdbcProperties.setProperty("jakarta.persistence.jdbc.driver", parameters.getDatabaseDriver());
jdbcProperties.setProperty("jakarta.persistence.jdbc.url", parameters.getDatabaseUrl());
jdbcProperties.setProperty("jakarta.persistence.jdbc.user", parameters.getDatabaseUser());
jdbcProperties.setProperty("jakarta.persistence.jdbc.password", parameters.getDatabasePassword());
- jdbcProperties.setProperty("hibernate.dialect",
- (parameters.getDatabaseType() == null
- ? "org.hibernate.dialect.MariaDBDialect"
- : parameters.getDatabaseType())); // @formatter:on
daoParameters.setJdbcProperties(jdbcProperties);