Updated to Java 11
[holmes/rule-management.git] / rulemgt / src / main / java / org / onap / holmes / rulemgt / db / CorrelationRuleQueryDao.java
index 85980e5..104f74d 100644 (file)
@@ -81,6 +81,7 @@ public class CorrelationRuleQueryDao {
         correlationRule.setVendor((String) value.get("vendor"));\r
         correlationRule.setPackageName((String) value.get("package"));\r
         correlationRule.setClosedControlLoopName((String) value.get("ctrlloop"));\r
+        correlationRule.setEngineInstance((String) value.get("engineInstance"));\r
         return correlationRule;\r
     }\r
 \r
@@ -96,7 +97,7 @@ public class CorrelationRuleQueryDao {
                 if (field.getName().contains("jacoco")) {\r
                     continue;\r
                 }\r
-                PropertyDescriptor pd = new PropertyDescriptor(field.getName(),\r
+                PropertyDescriptor pd = new PropertyDescriptor((String)field.getName(),\r
                         clazz);\r
                 Method getMethod = pd.getReadMethod();\r
                 Object o = getMethod.invoke(ruleQueryCondition);\r