From b9a8400bb36952c2cc3c706399b3863a52ab006a Mon Sep 17 00:00:00 2001 From: "a.sreekumar" Date: Thu, 24 Feb 2022 11:02:38 +0000 Subject: Adding spring data properties to apiParameters Change-Id: Iaada7de714210354f377d32549a1566d3b8cf615 Issue-ID: POLICY-3923 Signed-off-by: a.sreekumar --- .../src/main/resources/etc/apiParameters.yaml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'packages') 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 96b79823..fcb6d9f7 100644 --- a/packages/policy-api-tarball/src/main/resources/etc/apiParameters.yaml +++ b/packages/policy-api-tarball/src/main/resources/etc/apiParameters.yaml @@ -6,6 +6,20 @@ spring: name: policyadmin password: zb!XztG34 mvc.converters.preferred-json-mapper: gson + datasource: + url: jdbc:mariadb://mariadb:3306/policyadmin + driverClassName: org.mariadb.jdbc.Driver + username: policy_user + password: policy_user + jpa: + properties: + hibernate: + dialect: org.hibernate.dialect.MariaDB103Dialect + hibernate: + ddl-auto: none + naming: + physical-strategy: org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl + implicit-strategy: org.onap.policy.common.spring.utils.CustomImplicitNamingStrategy policy-api: name: ApiGroup @@ -62,4 +76,4 @@ management: base-path: / exposure: include: health,metrics,prometheus - path-mapping.prometheus: metrics \ No newline at end of file + path-mapping.prometheus: metrics -- cgit 1.2.3-korg