summaryrefslogtreecommitdiffstats
path: root/cps-ri/src/test/resources
diff options
context:
space:
mode:
authorniamhcore <niamh.core@est.tech>2021-01-11 17:14:08 +0000
committerniamhcore <niamh.core@est.tech>2021-01-18 09:45:16 +0000
commit6bd247357a3112be96b94d52532aa09231ed520c (patch)
tree51f651cd44dc57f52842efa519296225dbb9ff1a /cps-ri/src/test/resources
parenta16c3fb5f7f0bbe7bda9e4f21f71a3e958ed523f (diff)
Persisting data nodes (fragments tree structure)
Issue-ID: CPS-136 Signed-off-by: niamhcore <niamh.core@est.tech> Change-Id: I559afad41bf0eab1cc98c777a418b348c9c1b81c
Diffstat (limited to 'cps-ri/src/test/resources')
-rw-r--r--cps-ri/src/test/resources/data/fragment.sql13
1 files changed, 13 insertions, 0 deletions
diff --git a/cps-ri/src/test/resources/data/fragment.sql b/cps-ri/src/test/resources/data/fragment.sql
new file mode 100644
index 0000000000..c50f595306
--- /dev/null
+++ b/cps-ri/src/test/resources/data/fragment.sql
@@ -0,0 +1,13 @@
+INSERT INTO DATASPACE (ID, NAME) VALUES
+ (1001, 'DATASPACE-001');
+
+INSERT INTO SCHEMA_SET (ID, NAME, DATASPACE_ID) VALUES
+ (2001, 'SCHEMA-SET-001', 1001);
+
+INSERT INTO ANCHOR (ID, NAME, DATASPACE_ID, SCHEMA_SET_ID) VALUES
+ (3001, 'ANCHOR-001', 1001, 2001);
+
+INSERT INTO FRAGMENT (ID, XPATH, ANCHOR_ID, PARENT_ID, DATASPACE_ID) VALUES
+ (3001, '/parent', 3001, null, 1001),
+ (3002, '/parent/child', 3001, 3001, 1001),
+ (3003, '/parent/child/grandchild', 3001, 3002, 1001); \ No newline at end of file