aboutsummaryrefslogtreecommitdiffstats
path: root/a1-policy-management/src
diff options
context:
space:
mode:
authoraravind.est <aravindhan.a@est.tech>2024-08-28 17:57:57 +0100
committeraravind.est <aravindhan.a@est.tech>2024-08-29 14:01:37 +0100
commitd0f378288adfd05420f11e7a777d46a07ae9cdb0 (patch)
tree82d2954f6bfc0ad352df5a2650497a38b2087a5e /a1-policy-management/src
parentaa14206e61fe230a65dbc8ca0b46d9155b5736ff (diff)
Fix database support with latest spring boot upgrade
Database support fixed with the latest spring boot upgrade. Issue-ID: CCSDK-4033 Change-Id: I852d8e4f7476c602be6e976b14c735cd1409ee6d Signed-off-by: aravind.est <aravindhan.a@est.tech>
Diffstat (limited to 'a1-policy-management/src')
-rw-r--r--a1-policy-management/src/main/java/org/onap/ccsdk/oran/a1policymanagementservice/DatabaseIndependentBeanFactory.java2
-rw-r--r--a1-policy-management/src/main/java/org/onap/ccsdk/oran/a1policymanagementservice/database/DatabaseDependentBeanFactory.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/a1-policy-management/src/main/java/org/onap/ccsdk/oran/a1policymanagementservice/DatabaseIndependentBeanFactory.java b/a1-policy-management/src/main/java/org/onap/ccsdk/oran/a1policymanagementservice/DatabaseIndependentBeanFactory.java
index 305499d0..9c489a30 100644
--- a/a1-policy-management/src/main/java/org/onap/ccsdk/oran/a1policymanagementservice/DatabaseIndependentBeanFactory.java
+++ b/a1-policy-management/src/main/java/org/onap/ccsdk/oran/a1policymanagementservice/DatabaseIndependentBeanFactory.java
@@ -46,7 +46,7 @@ public class DatabaseIndependentBeanFactory {
@Bean
public PolicyTypes getPolicyTypes(@Autowired ApplicationConfig applicationConfig) {
PolicyTypes types = new PolicyTypes(applicationConfig);
- types.restoreFromDatabase().blockLast();
+ types.restoreFromDatabase().subscribe();
return types;
}
diff --git a/a1-policy-management/src/main/java/org/onap/ccsdk/oran/a1policymanagementservice/database/DatabaseDependentBeanFactory.java b/a1-policy-management/src/main/java/org/onap/ccsdk/oran/a1policymanagementservice/database/DatabaseDependentBeanFactory.java
index f463ecd0..426e1c47 100644
--- a/a1-policy-management/src/main/java/org/onap/ccsdk/oran/a1policymanagementservice/database/DatabaseDependentBeanFactory.java
+++ b/a1-policy-management/src/main/java/org/onap/ccsdk/oran/a1policymanagementservice/database/DatabaseDependentBeanFactory.java
@@ -45,7 +45,7 @@ public class DatabaseDependentBeanFactory {
@DependsOn({ "springContextProvider", "flywayInitializer" })
public PolicyTypes getPolicyTypes(@Autowired ApplicationConfig applicationConfig) {
PolicyTypes types = new PolicyTypes(applicationConfig);
- types.restoreFromDatabase().blockLast();
+ types.restoreFromDatabase().subscribe();
return types;
}