diff options
author | Determe, Sebastien (sd378r) <sd378r@intl.att.com> | 2018-04-19 14:15:19 +0200 |
---|---|---|
committer | Determe, Sebastien (sd378r) <sd378r@intl.att.com> | 2018-04-19 14:15:19 +0200 |
commit | 4ce8842b960445dfbde390b60ee78732a2c67c92 (patch) | |
tree | 37535f63c6089360151aa0a8a3bc83b6309ab1c3 | |
parent | c73a29b6458326a87ceebfed9b46ffd087dfa3f2 (diff) |
Fix null fields
Fix fields that become null due to wrong db code in clds template saving
Issue-ID: CLAMP-151
Change-Id: I06ec18786a092c769dd5b124e79038679a48ca91
Signed-off-by: Determe, Sebastien (sd378r) <sd378r@intl.att.com>
-rw-r--r-- | src/main/java/org/onap/clamp/clds/dao/CldsDao.java | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/main/java/org/onap/clamp/clds/dao/CldsDao.java b/src/main/java/org/onap/clamp/clds/dao/CldsDao.java index 143cb14b..a4e9299d 100644 --- a/src/main/java/org/onap/clamp/clds/dao/CldsDao.java +++ b/src/main/java/org/onap/clamp/clds/dao/CldsDao.java @@ -35,12 +35,12 @@ import java.util.Map; import javax.sql.DataSource; -import org.onap.clamp.clds.model.CldsMonitoringDetails; import org.onap.clamp.clds.model.CldsDbServiceCache; import org.onap.clamp.clds.model.CldsEvent; import org.onap.clamp.clds.model.CldsModel; import org.onap.clamp.clds.model.CldsModelInstance; import org.onap.clamp.clds.model.CldsModelProp; +import org.onap.clamp.clds.model.CldsMonitoringDetails; import org.onap.clamp.clds.model.CldsServiceData; import org.onap.clamp.clds.model.CldsTemplate; import org.onap.clamp.clds.model.ValueItem; @@ -311,13 +311,10 @@ public class CldsDao { template.setId((String) (out.get("v_template_id"))); template.setBpmnUserid((String) (out.get("v_template_bpmn_user_id"))); template.setBpmnId((String) (out.get("v_template_bpmn_id"))); - template.setBpmnText((String) (out.get("v_template_bpmn_text"))); template.setImageId((String) (out.get("v_template_image_id"))); template.setImageUserid((String) out.get("v_template_image_user_id")); - template.setImageText((String) out.get("v_template_image_text")); template.setPropId((String) (out.get("v_template_doc_id"))); template.setPropUserid((String) out.get("v_template_doc_user_id")); - template.setPropText((String) out.get("v_template_doc_text")); } /** |