summaryrefslogtreecommitdiffstats
path: root/controlloop/m2
diff options
context:
space:
mode:
Diffstat (limited to 'controlloop/m2')
-rw-r--r--controlloop/m2/guard/pom.xml6
-rw-r--r--controlloop/m2/guard/src/main/java/org/onap/policy/guard/GuardContext.java8
2 files changed, 5 insertions, 9 deletions
diff --git a/controlloop/m2/guard/pom.xml b/controlloop/m2/guard/pom.xml
index d32d97902..1683bbb20 100644
--- a/controlloop/m2/guard/pom.xml
+++ b/controlloop/m2/guard/pom.xml
@@ -58,9 +58,9 @@
</dependency>
<dependency>
- <groupId>org.onap.policy.drools-applications.controlloop.common</groupId>
- <artifactId>database</artifactId>
- <version>${project.version}</version>
+ <groupId>org.onap.policy.models.policy-models-interactions.model-impl</groupId>
+ <artifactId>guard</artifactId>
+ <version>${policy.models.version}</version>
</dependency>
<dependency>
diff --git a/controlloop/m2/guard/src/main/java/org/onap/policy/guard/GuardContext.java b/controlloop/m2/guard/src/main/java/org/onap/policy/guard/GuardContext.java
index d0d1b831f..a0d159150 100644
--- a/controlloop/m2/guard/src/main/java/org/onap/policy/guard/GuardContext.java
+++ b/controlloop/m2/guard/src/main/java/org/onap/policy/guard/GuardContext.java
@@ -28,23 +28,19 @@ import java.util.HashMap;
import java.util.Properties;
import java.util.UUID;
import java.util.function.Supplier;
-
import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;
-
import org.drools.core.WorkingMemory;
-
-import org.onap.policy.database.operationshistory.Dbao;
import org.onap.policy.drools.controller.DroolsController;
import org.onap.policy.drools.core.PolicyContainer;
import org.onap.policy.drools.core.PolicySession;
import org.onap.policy.drools.system.PolicyController;
import org.onap.policy.drools.system.PolicyControllerConstants;
import org.onap.policy.drools.system.PolicyEngineConstants;
+import org.onap.policy.guard.OperationsHistory;
import org.onap.policy.guard.Util;
import org.onap.policy.util.DroolsSessionCommonSerializable;
-
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@@ -317,7 +313,7 @@ public class GuardContext implements Serializable {
em = createEntityManager();
// create the new DB table entry
- Dbao newEntry = new Dbao();
+ OperationsHistory newEntry = new OperationsHistory();
// populate the new DB table entry
newEntry.setClosedLoopName(closedLoopControlName);