diff options
author | liamfallon <liam.fallon@est.tech> | 2020-03-06 17:17:36 +0000 |
---|---|---|
committer | liamfallon <liam.fallon@est.tech> | 2020-03-06 17:17:39 +0000 |
commit | 8021fe6aa24b4a4c586cda78255c143eca3e3520 (patch) | |
tree | 0fae45d1ea8dd10a2a02d291d1f224561acbb1fa /models-tosca/src/main/java | |
parent | 3f48197acf151c5f2b2b8b4e7bd366c2371619a0 (diff) |
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 <liam.fallon@est.tech>
Diffstat (limited to 'models-tosca/src/main/java')
-rw-r--r-- | models-tosca/src/main/java/org/onap/policy/models/tosca/simple/concepts/JpaToscaPolicy.java | 2 |
1 files changed, 1 insertions, 1 deletions
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<ToscaPolicy> 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 |