diff options
author | a.sreekumar <ajith.sreekumar@bell.ca> | 2022-01-25 15:19:40 +0000 |
---|---|---|
committer | a.sreekumar <ajith.sreekumar@bell.ca> | 2022-01-28 11:26:15 +0000 |
commit | 618ab3870d9ac3902edbc64cb2a69ef76ea88dfb (patch) | |
tree | 5fa67917a78e3f7805cad4a82eddc94769ecf1e5 /main/src/main/java/org/onap/policy/pap/main/PolicyPapApplication.java | |
parent | 518e56befaeb44df719c2d1db7daf7b0de6f3c1d (diff) |
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 <ajith.sreekumar@bell.ca>
Diffstat (limited to 'main/src/main/java/org/onap/policy/pap/main/PolicyPapApplication.java')
-rw-r--r-- | main/src/main/java/org/onap/policy/pap/main/PolicyPapApplication.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/main/src/main/java/org/onap/policy/pap/main/PolicyPapApplication.java b/main/src/main/java/org/onap/policy/pap/main/PolicyPapApplication.java index 4a13c74d..ede40126 100644 --- a/main/src/main/java/org/onap/policy/pap/main/PolicyPapApplication.java +++ b/main/src/main/java/org/onap/policy/pap/main/PolicyPapApplication.java @@ -1,6 +1,6 @@ /*- * ============LICENSE_START======================================================= - * Copyright (C) 2021 Bell Canada. All rights reserved. + * Copyright (C) 2021-2022 Bell Canada. All rights reserved. * ================================================================================ * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -25,10 +25,14 @@ import com.google.gson.GsonBuilder; import org.onap.policy.common.gson.GsonMessageBodyHandler; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; +import org.springframework.boot.autoconfigure.domain.EntityScan; import org.springframework.boot.autoconfigure.jackson.JacksonAutoConfiguration; import org.springframework.context.annotation.Bean; @SpringBootApplication(exclude = {JacksonAutoConfiguration.class}) +@EntityScan( + basePackages = {"org.onap.policy.models.pap.persistence.concepts", + "org.onap.policy.models.pdp.persistence.concepts", "org.onap.policy.models.tosca.simple.concepts"}) public class PolicyPapApplication { public static void main(String[] args) { |