From: Jim Hahn Date: Thu, 11 Apr 2019 15:04:29 +0000 (-0400) Subject: Add constant PdpGroup.VERSION X-Git-Tag: 3.0.2-ONAP~20^2 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=5fb11a142d8310d9d9ed62b58fe6701f6ce4d6b7;p=policy%2Fmodels.git Add constant PdpGroup.VERSION At some point, the "version" field will be removed from PdpGroup. Until then, all groups should have the same version, thus added a constant for that value. Change-Id: Ib81e2760d04bea0abf83c42bf95fe861a7471176 Issue-ID: POLICY-1542 Signed-off-by: Jim Hahn --- diff --git a/models-pdp/src/main/java/org/onap/policy/models/pdp/concepts/PdpGroup.java b/models-pdp/src/main/java/org/onap/policy/models/pdp/concepts/PdpGroup.java index 9665fd472..8805ae9ba 100644 --- a/models-pdp/src/main/java/org/onap/policy/models/pdp/concepts/PdpGroup.java +++ b/models-pdp/src/main/java/org/onap/policy/models/pdp/concepts/PdpGroup.java @@ -41,6 +41,12 @@ import org.onap.policy.models.pdp.enums.PdpState; @Data @NoArgsConstructor public class PdpGroup implements PfNameVersion, Comparable { + /** + * In the future, we'll eliminate the "version" field. Until then, the version of + * every group should always be this fixed value. + */ + public static final String VERSION = "1.0.0"; + private String name; private String version; private String description;