}
//TODO Legacy ID in DTO should be Key
+ update.put(RuleField.CHARACTERISTIC.field(), null);
+ update.put(RuleField.SUB_CHARACTERISTIC.field(), null);
+ update.put(RuleField.DEFAULT_CHARACTERISTIC.field(), null);
+ update.put(RuleField.DEFAULT_SUB_CHARACTERISTIC.field(), null);
+
CharacteristicDto characteristic = null;
CharacteristicDto defaultCharacteristic = null;
if (rule.getDefaultSubCharacteristicId() != null) {
db.debtCharacteristicDao().selectById(characteristic.getParentId(), session);
update.put(RuleField.CHARACTERISTIC.field(), parentCharacteristic.getKey());
if (defaultCharacteristic != null) {
- if (characteristic.getId() == defaultCharacteristic.getId()) {
+ if (characteristic.getId().equals(defaultCharacteristic.getId())) {
update.put(RuleField.DEFAULT_CHARACTERISTIC.field(), parentCharacteristic.getKey());
} else {
update.put(RuleField.DEFAULT_CHARACTERISTIC.field(),
}
}
}
- } else {
- update.put(RuleField.CHARACTERISTIC.field(), null);
- update.put(RuleField.SUB_CHARACTERISTIC.field(), null);
- update.put(RuleField.DEFAULT_CHARACTERISTIC.field(), null);
- update.put(RuleField.DEFAULT_SUB_CHARACTERISTIC.field(), null);
}
String dType = null, dCoefficient = null, dOffset = null;
"tags": ["tag1", "tag2"],
"sysTags": ["systag1", "systag2"],
"debtChar": "API",
- "debtSubChar": "API Abuse",
+ "debtSubChar": "API_ABUSE",
"debtRemFnType": "LINEAR_OFFSET",
"debtRemFnCoeff": "5d",
"debtRemFnOffset": "10h",