aboutsummaryrefslogtreecommitdiffstats
path: root/packages/policy-clamp-tarball/src/main
diff options
context:
space:
mode:
authorFrancescoFioraEst <francesco.fiora@est.tech>2021-12-03 13:43:41 +0000
committerFrancescoFioraEst <francesco.fiora@est.tech>2022-02-16 16:23:06 +0000
commitb902c7dd9ad1b74729c3c488b24624e510244250 (patch)
tree50ad8ab9560b95b66ec0e95e9ae3b3749ad21332 /packages/policy-clamp-tarball/src/main
parentc97a6c0428998103906472725d34b9951a0ff559 (diff)
Add Hibernate support in runtime-controlloop
Issue-ID: POLICY-3841 Change-Id: Ie958a4a4ab35c8bc4d6829128e39a2458d67a7a5 Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
Diffstat (limited to 'packages/policy-clamp-tarball/src/main')
-rw-r--r--packages/policy-clamp-tarball/src/main/resources/etc/ClRuntimeParameters.yaml22
1 files changed, 10 insertions, 12 deletions
diff --git a/packages/policy-clamp-tarball/src/main/resources/etc/ClRuntimeParameters.yaml b/packages/policy-clamp-tarball/src/main/resources/etc/ClRuntimeParameters.yaml
index 1a57f2347..462448921 100644
--- a/packages/policy-clamp-tarball/src/main/resources/etc/ClRuntimeParameters.yaml
+++ b/packages/policy-clamp-tarball/src/main/resources/etc/ClRuntimeParameters.yaml
@@ -16,6 +16,16 @@ spring:
idleTimeout: 600000
maxLifetime: 1800000
maximumPoolSize: 10
+ jpa:
+ hibernate:
+ ddl-auto: update
+ naming:
+ physical-strategy: org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl
+ implicit-strategy: org.onap.policy.common.spring.utils.CustomImplicitNamingStrategy
+ properties:
+ hibernate:
+ dialect: org.hibernate.dialect.MariaDB103Dialect
+ format_sql: true
security:
enable-csrf: false
@@ -29,24 +39,12 @@ server:
runtime:
- supervisionScannerIntervalSec: 1000
- participantClUpdateIntervalSec: 1000
- participantClStateChangeIntervalSec: 1000
participantParameters:
heartBeatMs: 20000
maxStatusWaitMs: 100000
updateParameters:
maxRetryCount: 3
maxWaitMs: 20000
- databasePlatform: org.eclipse.persistence.platform.database.MySQLPlatform
- databaseProviderParameters:
- name: PolicyProviderParameterGroup
- implementation: org.onap.policy.models.provider.impl.DatabasePolicyModelsProviderImpl
- databaseDriver: org.mariadb.jdbc.Driver
- databaseUrl: jdbc:mariadb://${mariadb.host:mariadb}:${mariadb.port:3306}/controlloop
- databaseUser: policy_user
- databasePassword: policy_user
- persistenceUnit: CommissioningMariaDb
topicParameterGroup:
topicSources:
-