Fix cascaded get filtering and speed 08/102008/2
authorliamfallon <liam.fallon@est.tech>
Wed, 19 Feb 2020 16:54:34 +0000 (16:54 +0000)
committerliamfallon <liam.fallon@est.tech>
Wed, 19 Feb 2020 17:05:12 +0000 (17:05 +0000)
commit589e42747b6ad53680a8e51d64597c6590fa0ade
treeb847e16d224a7abc999391252db12af918f050b6
parentca409ee108f3f653d66be804e8a9f95f794e26d4
Fix cascaded get filtering and speed

This change adds proper cascading bahaviour to the returned service
template for filtered gets on policies.

It also significantly improves the performance on get operations, all
get operations on the API now result in only one database query.

Issue-ID: POLICY-1402
Change-Id: I7c7d0a8d9f1caf8b610461779e242c34b7f77365
Signed-off-by: liamfallon <liam.fallon@est.tech>
models-provider/src/test/java/org/onap/policy/models/provider/impl/PolicyToscaPersistenceTest.java
models-tosca/src/main/java/org/onap/policy/models/tosca/authorative/provider/AuthorativeToscaProvider.java
models-tosca/src/main/java/org/onap/policy/models/tosca/simple/provider/SimpleToscaProvider.java