commit | 676194789a8b880e2416f9d3bf2484a9fc6be1bc | [log] [tgz] |
---|---|---|
author | a.sreekumar <ajith.sreekumar@bell.ca> | Tue Feb 15 12:16:30 2022 +0000 |
committer | a.sreekumar <ajith.sreekumar@bell.ca> | Wed Feb 16 11:49:27 2022 +0000 |
tree | 71617241837026c53dec1f76b9c0b3ae7a584dff | |
parent | 45b653fc5a8d641452247eca5c80cf580609e9bf [diff] |
Fix issue with GeneratedValue in PfGeneratedIdKey PfGeneratedIdKey class (which is used as a composite key in JpaPolicyAudit and JpaPdpStatistics) uses GeneratedValue in a wrong way and not according to the specification. This review fixes it. PfGeneratedIdKey class is removed, and the generatedId is directly specified in the JpaPolicyAudit and JpaPdpStatistics classes. Note: These classes are only used by PAP, so the related methods for db interaction is removed as PAP directly talks to DB using spring repository layer. Also the only end result this change brings is that the 'generatedId' alone will be used as the primary key instead of 'generatedId, name and version' together. Corresponding changes in DB Migrator: https://gerrit.onap.org/r/c/policy/docker/+/127139 PAP: https://gerrit.onap.org/r/c/policy/pap/+/127130 Change-Id: Ib4ea8b60ffe5c2480746569c0354bf474a6b7006 Issue-ID: POLICY-3897 Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
Copyright 2018 AT&T Intellectual Property. All rights reserved. This file is licensed under the CREATIVE COMMONS ATTRIBUTION 4.0 INTERNATIONAL LICENSE Full license text at https://creativecommons.org/licenses/by/4.0/legalcode
This source repository contains the ONAP Policy Model code that is agnostic to any PDP. It is common amongst all the repositories.
To build it using Maven 3, run: mvn clean install