Return latest entity on null versions 54/103854/1
authorliamfallon <liam.fallon@est.tech>
Wed, 18 Mar 2020 11:47:20 +0000 (11:47 +0000)
committerliamfallon <liam.fallon@est.tech>
Wed, 18 Mar 2020 11:47:23 +0000 (11:47 +0000)
commitf98830a4ba01188538ca0b001143f7b573ecde77
treee1b2239a4963a55185ae4168d5df187fe4c0d2f5
parentf116f388adff2971f802035ca96415032b5fc5fd
Return latest entity on null versions

This review amends the behaviour of "get" operations on entities to
always return the latest version of an entity when the version of the
search key is the null key (value of 0.0.0).

Issue-ID: POLICY-2377
Change-Id: I4f7c12637c90bc1a83ce2ba5ef40e15b461a7d51
Signed-off-by: liamfallon <liam.fallon@est.tech>
models-base/src/main/java/org/onap/policy/models/base/PfConceptContainer.java
models-base/src/main/java/org/onap/policy/models/base/PfConceptGetterImpl.java
models-provider/src/test/java/org/onap/policy/models/provider/revisionhierarchy/HierarchyFetchTest.java