From b824255ebe9336063b70be668a56995beb1d972f Mon Sep 17 00:00:00 2001 From: "adheli.tavares" Date: Tue, 20 Feb 2024 14:35:10 +0000 Subject: [PATCH] Fix config files to remove outdated hibernate configuration Issue-ID: POLICY-4929 Change-Id: I218b6f0bc095d2693f8fa278a255dac0ad145588 Signed-off-by: adheli.tavares --- .gitignore | 1 + main/pom.xml | 1 - main/src/main/resources/application.yaml | 3 --- main/src/test/resources/META-INF/persistence.xml | 2 +- main/src/test/resources/application-test.yaml | 4 +--- .../policy-api-tarball/src/main/resources/etc/apiParameters.yaml | 7 +++---- 6 files changed, 6 insertions(+), 12 deletions(-) diff --git a/.gitignore b/.gitignore index 8daeb28f..89ec75f2 100644 --- a/.gitignore +++ b/.gitignore @@ -14,3 +14,4 @@ debug-logs/ *.iml *.ipr *.iws +**/*.log diff --git a/main/pom.xml b/main/pom.xml index 9627bed9..b37a1c5a 100644 --- a/main/pom.xml +++ b/main/pom.xml @@ -162,7 +162,6 @@ org.springframework.boot spring-boot-maven-plugin - ${version.springboot} diff --git a/main/src/main/resources/application.yaml b/main/src/main/resources/application.yaml index 32b1c9ca..8bec86ec 100644 --- a/main/src/main/resources/application.yaml +++ b/main/src/main/resources/application.yaml @@ -11,9 +11,6 @@ spring: username: policy_user password: policy_user jpa: - properties: - hibernate: - dialect: org.hibernate.dialect.MariaDB103Dialect hibernate: ddl-auto: none naming: diff --git a/main/src/test/resources/META-INF/persistence.xml b/main/src/test/resources/META-INF/persistence.xml index f73f7d05..9b988cb5 100644 --- a/main/src/test/resources/META-INF/persistence.xml +++ b/main/src/test/resources/META-INF/persistence.xml @@ -23,7 +23,7 @@ - org.eclipse.persistence.jpa.PersistenceProvider + org.hibernate.jpa.HibernatePersistenceProvider org.onap.policy.models.base.PfConceptKey org.onap.policy.models.dao.converters.CDataConditioner diff --git a/main/src/test/resources/application-test.yaml b/main/src/test/resources/application-test.yaml index f47873b7..329d96be 100644 --- a/main/src/test/resources/application-test.yaml +++ b/main/src/test/resources/application-test.yaml @@ -3,11 +3,9 @@ spring: url: jdbc:h2:mem:testdb driverClassName: org.h2.Driver jpa: - properties: - hibernate: - dialect: org.hibernate.dialect.H2Dialect hibernate: ddl-auto: update naming: physical-strategy: org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl implicit-strategy: org.onap.policy.common.spring.utils.CustomImplicitNamingStrategy + open-in-view: false \ No newline at end of file diff --git a/packages/policy-api-tarball/src/main/resources/etc/apiParameters.yaml b/packages/policy-api-tarball/src/main/resources/etc/apiParameters.yaml index 2c19199a..704dd640 100644 --- a/packages/policy-api-tarball/src/main/resources/etc/apiParameters.yaml +++ b/packages/policy-api-tarball/src/main/resources/etc/apiParameters.yaml @@ -12,9 +12,6 @@ spring: username: policy_user password: policy_user jpa: - properties: - hibernate: - dialect: org.hibernate.dialect.MariaDB103Dialect hibernate: ddl-auto: none naming: @@ -67,4 +64,6 @@ management: base-path: / exposure: include: health,metrics,prometheus - path-mapping.prometheus: metrics + path-mapping: + -metrics: plain-metrics + -prometheus: metrics -- 2.16.6