aboutsummaryrefslogtreecommitdiffstats
path: root/openecomp-be/tools/zusammen-tools/src/main
diff options
context:
space:
mode:
authorshrek2000 <orenkle@amdocs.com>2018-01-18 10:40:26 +0200
committerAvi Gaffa <avi.gaffa@amdocs.com>2018-01-21 11:14:45 +0000
commit571c1c8c6e202fd9d31cbffe1ffdf87213104b6a (patch)
tree4bb0e144968fb2beb41a6b4d4ece1297193ecfe0 /openecomp-be/tools/zusammen-tools/src/main
parentaa2eece0e8559be66454b757cae4bbccb59ea828 (diff)
Fix zusammen export tool
Zusammen import needs to import and export table zusammen_dox.element_synchronization_state Issue-ID: SDC-941 Change-Id: I4693b99f44382b5c320dfb5b83679faff50164f2 Signed-off-by: shrek2000 <orenkle@amdocs.com>
Diffstat (limited to 'openecomp-be/tools/zusammen-tools/src/main')
-rw-r--r--openecomp-be/tools/zusammen-tools/src/main/java/org/openecomp/core/tools/importinfo/ImportSingleTable.java2
-rw-r--r--openecomp-be/tools/zusammen-tools/src/main/resources/queries.yaml3
2 files changed, 4 insertions, 1 deletions
diff --git a/openecomp-be/tools/zusammen-tools/src/main/java/org/openecomp/core/tools/importinfo/ImportSingleTable.java b/openecomp-be/tools/zusammen-tools/src/main/java/org/openecomp/core/tools/importinfo/ImportSingleTable.java
index 922e5c7d00..6351d7fa55 100644
--- a/openecomp-be/tools/zusammen-tools/src/main/java/org/openecomp/core/tools/importinfo/ImportSingleTable.java
+++ b/openecomp-be/tools/zusammen-tools/src/main/java/org/openecomp/core/tools/importinfo/ImportSingleTable.java
@@ -97,7 +97,7 @@ public class ImportSingleTable {
break;
case TIMESTAMP:
if (StringUtils.isEmpty(rowData)){
- bind.setSet(i, null);
+ bind.setDate(i, null);
} else {
bind.setDate(i, new Date(Long.parseLong(rowData)));
}
diff --git a/openecomp-be/tools/zusammen-tools/src/main/resources/queries.yaml b/openecomp-be/tools/zusammen-tools/src/main/resources/queries.yaml
index a93a5a46e8..0e4f5f551b 100644
--- a/openecomp-be/tools/zusammen-tools/src/main/resources/queries.yaml
+++ b/openecomp-be/tools/zusammen-tools/src/main/resources/queries.yaml
@@ -1,6 +1,7 @@
queries:
- select * from zusammen_dox.element;
- select * from zusammen_dox.element_namespace;
+ - select * from zusammen_dox.element_synchronization_state;
- select * from zusammen_dox.item;
- select * from zusammen_dox.version;
- select * from zusammen_dox.version_elements;
@@ -13,4 +14,6 @@ item_columns:
- item_id
- item_id
- item_id
+ - item_id
+ - item_id
- item_id \ No newline at end of file