From 618ab3870d9ac3902edbc64cb2a69ef76ea88dfb Mon Sep 17 00:00:00 2001 From: "a.sreekumar" Date: Tue, 25 Jan 2022 15:19:40 +0000 Subject: Create spring repository layer for PAP This review adds the spring repository and service layers to PAP. Once this is merged, the next work will be to actually use these spring boot based services to talk to the db directly, and not using policy-models-provider in PAP. Change-Id: Ib086b8b405020cb452e51d6359dd1a69d0000f74 Issue-ID: POLICY-3869 Signed-off-by: a.sreekumar --- main/src/test/resources/config/application.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'main/src/test/resources/config') diff --git a/main/src/test/resources/config/application.yaml b/main/src/test/resources/config/application.yaml index 1444a7d2..06d153bb 100644 --- a/main/src/test/resources/config/application.yaml +++ b/main/src/test/resources/config/application.yaml @@ -6,6 +6,18 @@ spring: http: converters: preferred-json-mapper: gson + datasource: + 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.pap.main.CustomImplicitNamingStrategy server: port: 6969 -- cgit 1.2.3-korg