From 8021fe6aa24b4a4c586cda78255c143eca3e3520 Mon Sep 17 00:00:00 2001 From: liamfallon Date: Fri, 6 Mar 2020 17:17:36 +0000 Subject: Full version in policy metadata version Major, minor, and patch version of policy now in policy metadata version. Issue-ID: POLICY-2243 Change-Id: I1f3c7054a12e724264b117e399890c9e1c3347f2 Signed-off-by: liamfallon --- .../org/onap/policy/models/tosca/simple/concepts/JpaToscaPolicy.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models-tosca/src/main/java/org/onap/policy/models/tosca/simple/concepts/JpaToscaPolicy.java b/models-tosca/src/main/java/org/onap/policy/models/tosca/simple/concepts/JpaToscaPolicy.java index b5da49751..cebf63d36 100644 --- a/models-tosca/src/main/java/org/onap/policy/models/tosca/simple/concepts/JpaToscaPolicy.java +++ b/models-tosca/src/main/java/org/onap/policy/models/tosca/simple/concepts/JpaToscaPolicy.java @@ -228,7 +228,7 @@ public class JpaToscaPolicy extends JpaToscaEntityType implements P // Add the policy name and version fields to the metadata getMetadata().put(METADATA_POLICY_ID_TAG, getKey().getName()); - getMetadata().put(METADATA_POLICY_VERSION_TAG, Integer.toString(getKey().getMajorVersion())); + getMetadata().put(METADATA_POLICY_VERSION_TAG, getKey().getVersion()); } @Override -- cgit 1.2.3-korg