From 0beaee1addfeaa0e4a8fb74e2659e890e36f1b45 Mon Sep 17 00:00:00 2001 From: Matthieu Cauffiez Date: Mon, 1 Apr 2019 15:40:00 -0400 Subject: fix typo that can lead on bugs string xacmlId doesn t correspond to anything in DecisionSettings same for shotname in functionDefinition Issue-ID: POLICY-1250 Change-Id: I7ac457666f341b50c761dbdabf806fa7efece5a9 Signed-off-by: Matthieu Cauffiez --- .../org/onap/policy/pap/xacml/rest/components/DecisionPolicy.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ONAP-PAP-REST/src/main/java/org/onap') diff --git a/ONAP-PAP-REST/src/main/java/org/onap/policy/pap/xacml/rest/components/DecisionPolicy.java b/ONAP-PAP-REST/src/main/java/org/onap/policy/pap/xacml/rest/components/DecisionPolicy.java index 3a18504d0..a254f7ad0 100644 --- a/ONAP-PAP-REST/src/main/java/org/onap/policy/pap/xacml/rest/components/DecisionPolicy.java +++ b/ONAP-PAP-REST/src/main/java/org/onap/policy/pap/xacml/rest/components/DecisionPolicy.java @@ -457,7 +457,7 @@ public class DecisionPolicy extends Policy { } private DecisionSettings findDecisionSettingsBySettingId(String settingId) { - return (DecisionSettings) commonClassDao.getEntityItem(DecisionSettings.class, "xacmlId", settingId); + return (DecisionSettings) commonClassDao.getEntityItem(DecisionSettings.class, "xacml_id", settingId); } private void createRule(PolicyType decisionPolicy, boolean permitRule) { @@ -873,7 +873,7 @@ public class DecisionPolicy extends Policy { public String getFunctionDefinitionId(String key) { FunctionDefinition object = - (FunctionDefinition) commonClassDao.getEntityItem(FunctionDefinition.class, "shortname", key); + (FunctionDefinition) commonClassDao.getEntityItem(FunctionDefinition.class, "short_name", key); if (object != null) { return object.getXacmlid(); } -- cgit 1.2.3-korg