Add a new key class which uses @GeneratedValue to base classes
[policy/models.git] / models-pdp / src / main / java / org / onap / policy / models / pdp / concepts / PdpStatistics.java
index f7a0e7d..c9c4cda 100644 (file)
@@ -1,8 +1,7 @@
 /*-
  * ============LICENSE_START=======================================================
- *  Copyright (C) 2019 Nordix Foundation.
+ *  Copyright (C) 2019-2021 Nordix Foundation.
  *  Modifications Copyright (C) 2019 AT&T Intellectual Property.
- *  Modifications Copyright (C) 2020-2021 Nordix Foundation.
  * ================================================================================
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -22,6 +21,7 @@
 
 package org.onap.policy.models.pdp.concepts;
 
+
 import java.time.Instant;
 import java.util.List;
 import lombok.Data;
@@ -40,6 +40,7 @@ public class PdpStatistics {
 
     private String pdpInstanceId;
     private Instant timeStamp;
+    private Long generatedId;
     private String pdpGroupName;
     private String pdpSubGroupName;
     private long policyDeployCount;
@@ -58,6 +59,7 @@ public class PdpStatistics {
     public PdpStatistics(@NonNull PdpStatistics source) {
         this.pdpInstanceId = source.pdpInstanceId;
         this.timeStamp = source.timeStamp;
+        this.generatedId = source.generatedId;
         this.pdpGroupName = source.pdpGroupName;
         this.pdpSubGroupName = source.pdpSubGroupName;
         this.policyDeployCount = source.policyDeployCount;
@@ -68,5 +70,4 @@ public class PdpStatistics {
         this.policyExecutedSuccessCount = source.policyExecutedSuccessCount;
         this.engineStats = PfUtils.mapList(source.engineStats, PdpEngineWorkerStatistics::new, null);
     }
-
 }