Fix config files to remove outdated hibernate configuration 29/137329/1
authoradheli.tavares <adheli.tavares@est.tech>
Tue, 20 Feb 2024 14:35:10 +0000 (14:35 +0000)
committeradheli.tavares <adheli.tavares@est.tech>
Tue, 20 Feb 2024 14:37:53 +0000 (14:37 +0000)
Issue-ID: POLICY-4929
Change-Id: I218b6f0bc095d2693f8fa278a255dac0ad145588
Signed-off-by: adheli.tavares <adheli.tavares@est.tech>
.gitignore
main/pom.xml
main/src/main/resources/application.yaml
main/src/test/resources/META-INF/persistence.xml
main/src/test/resources/application-test.yaml
packages/policy-api-tarball/src/main/resources/etc/apiParameters.yaml

index 8daeb28..89ec75f 100644 (file)
@@ -14,3 +14,4 @@ debug-logs/
 *.iml
 *.ipr
 *.iws
+**/*.log
index 9627bed..b37a1c5 100644 (file)
             <plugin>
                 <groupId>org.springframework.boot</groupId>
                 <artifactId>spring-boot-maven-plugin</artifactId>
-                <version>${version.springboot}</version>
                 <executions>
                     <execution>
                         <goals>
index 32b1c9c..8bec86e 100644 (file)
@@ -11,9 +11,6 @@ spring:
     username: policy_user
     password: policy_user
   jpa:
-    properties:
-      hibernate:
-        dialect: org.hibernate.dialect.MariaDB103Dialect
     hibernate:
       ddl-auto: none
       naming:
index f73f7d0..9b988cb 100644 (file)
@@ -23,7 +23,7 @@
 
 <persistence xmlns="http://java.sun.com/xml/ns/persistence" version="2.0">
     <persistence-unit name="ToscaConceptTest" transaction-type="RESOURCE_LOCAL">
-        <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
+        <provider>org.hibernate.jpa.HibernatePersistenceProvider</provider>
 
         <class>org.onap.policy.models.base.PfConceptKey</class>
         <class>org.onap.policy.models.dao.converters.CDataConditioner</class>
index f47873b..329d96b 100644 (file)
@@ -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
index 2c19199..704dd64 100644 (file)
@@ -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