Skip to content

Commit 349ecb3

Browse files
committed
Tidy up
1 parent de0cdb6 commit 349ecb3

File tree

6 files changed

+995
-2
lines changed

6 files changed

+995
-2
lines changed

COPYING.txt

Lines changed: 674 additions & 0 deletions
Large diffs are not rendered by default.

ClassLibrary/DataWarehouseAutomation/DataWarehouseAutomation.sln

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Sample Metadata", "Sample M
2121
Sample_Metadata\sampleBasicWithExtensions.json = Sample_Metadata\sampleBasicWithExtensions.json
2222
Sample_Metadata\sampleCalculation.json = Sample_Metadata\sampleCalculation.json
2323
Sample_Metadata\sampleFreeForm.json = Sample_Metadata\sampleFreeForm.json
24+
Sample_Metadata\sampleJsonStagingWithPsaDetails.json = Sample_Metadata\sampleJsonStagingWithPsaDetails.json
2425
Sample_Metadata\sampleMultipleDataItemMappings.json = Sample_Metadata\sampleMultipleDataItemMappings.json
2526
Sample_Metadata\sampleSimpleDDL.json = Sample_Metadata\sampleSimpleDDL.json
2627
Sample_Metadata\sampleSourceQuery.json = Sample_Metadata\sampleSourceQuery.json
Lines changed: 317 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,317 @@
1+
{
2+
"metadataConfiguration": {
3+
"vdwSchemaName": "vdw",
4+
"changeDataCaptureAttribute": "CDC_OPERATION",
5+
"recordSourceAttribute": "RECORD_SOURCE",
6+
"loadDateTimeAttribute": "LOAD_DATETIME",
7+
"expiryDateTimeAttribute": "LOAD_END_DATETIME",
8+
"eventDateTimeAttribute": "EVENT_DATETIME",
9+
"recordChecksumAttribute": "HASH_FULL_RECORD",
10+
"etlProcessAttribute": "INSERT_MODULE_INSTANCE_ID",
11+
"sourceRowIdAttribute": "SOURCE_ROW_ID"
12+
},
13+
"generationSpecificMetadata": {
14+
"selectedDataObject": "infor.STG_tbcgct005",
15+
"generationDateTime": "2021-01-26T14:22:09.2991051+01:00"
16+
},
17+
"metadataFileName": "D:\\Virtual Data Warehouse\\Virtual Data Warehouse1.6.4EDW\\EDW\\infor.STG_tbcgct005.json",
18+
"dataObjectMappings": [
19+
{
20+
"mappingName": "STG_tbcgct005",
21+
"mappingClassifications": [
22+
{
23+
"id": 1,
24+
"classification": "StagingArea",
25+
"notes": "The mappings from source to the landing (staging) area."
26+
}
27+
],
28+
"sourceDataObjects": [
29+
{
30+
"name": "tbcgct005101",
31+
"dataObjectConnection": {
32+
"dataConnectionString": "Source",
33+
"extensions": [
34+
{
35+
"key": "database",
36+
"value": "erplndb",
37+
"description": "database name"
38+
},
39+
{
40+
"key": "schema",
41+
"value": "dbo",
42+
"description": "schema name"
43+
}
44+
]
45+
}
46+
}
47+
],
48+
"targetDataObject": {
49+
"name": "STG_tbcgct005",
50+
"dataObjectConnection": {
51+
"dataConnectionString": "Staging",
52+
"extensions": [
53+
{
54+
"key": "database",
55+
"value": "TEAM_100_Staging_Area",
56+
"description": "database name"
57+
},
58+
{
59+
"key": "schema",
60+
"value": "infor",
61+
"description": "schema name"
62+
}
63+
]
64+
}
65+
},
66+
"relatedDataObjects": [
67+
{
68+
"name": "PSA_tbcgct005",
69+
"dataObjectConnection": {
70+
"dataConnectionString": "PSA",
71+
"extensions": [
72+
{
73+
"key": "database",
74+
"value": "TEAM_150_Persistent_Staging_Area",
75+
"description": "database name"
76+
},
77+
{
78+
"key": "schema",
79+
"value": "infor",
80+
"description": "schema name"
81+
}
82+
]
83+
},
84+
"dataObjectClassifications": [
85+
{
86+
"classification": "Lookup",
87+
"notes": "Lookup table related to the source-to-target mapping"
88+
}
89+
]
90+
}
91+
],
92+
"dataItemMappings": [
93+
{
94+
"sourceDataItems": [
95+
{
96+
"name": "Company"
97+
}
98+
],
99+
"targetDataItem": {
100+
"name": "Company",
101+
"dataType": "int",
102+
"ordinalPosition": 8
103+
}
104+
},
105+
{
106+
"sourceDataItems": [
107+
{
108+
"name": "t_ccmp",
109+
"dataType": "int",
110+
"ordinalPosition": 9
111+
}
112+
],
113+
"targetDataItem": {
114+
"name": "t_ccmp",
115+
"dataType": "int",
116+
"ordinalPosition": 17
117+
}
118+
},
119+
{
120+
"sourceDataItems": [
121+
{
122+
"name": "t_comp",
123+
"dataType": "int",
124+
"ordinalPosition": 3
125+
}
126+
],
127+
"targetDataItem": {
128+
"name": "t_comp",
129+
"dataType": "int",
130+
"ordinalPosition": 11
131+
}
132+
},
133+
{
134+
"sourceDataItems": [
135+
{
136+
"name": "t_ctly",
137+
"dataType": "int",
138+
"ordinalPosition": 7
139+
}
140+
],
141+
"targetDataItem": {
142+
"name": "t_ctly",
143+
"dataType": "int",
144+
"ordinalPosition": 15
145+
}
146+
},
147+
{
148+
"sourceDataItems": [
149+
{
150+
"name": "t_load",
151+
"dataType": "int",
152+
"ordinalPosition": 2
153+
}
154+
],
155+
"targetDataItem": {
156+
"name": "t_load",
157+
"dataType": "int",
158+
"ordinalPosition": 10
159+
}
160+
},
161+
{
162+
"sourceDataItems": [
163+
{
164+
"name": "t_nofi",
165+
"dataType": "int",
166+
"ordinalPosition": 8
167+
}
168+
],
169+
"targetDataItem": {
170+
"name": "t_nofi",
171+
"dataType": "int",
172+
"ordinalPosition": 16
173+
}
174+
},
175+
{
176+
"sourceDataItems": [
177+
{
178+
"name": "t_path",
179+
"dataType": "nvarchar",
180+
"characterLength": 250,
181+
"ordinalPosition": 4
182+
}
183+
],
184+
"targetDataItem": {
185+
"name": "t_path",
186+
"dataType": "nvarchar",
187+
"characterLength": 500,
188+
"ordinalPosition": 12
189+
}
190+
},
191+
{
192+
"sourceDataItems": [
193+
{
194+
"name": "t_Refcntd",
195+
"dataType": "int",
196+
"ordinalPosition": 10
197+
}
198+
],
199+
"targetDataItem": {
200+
"name": "t_Refcntd",
201+
"dataType": "int",
202+
"ordinalPosition": 18
203+
}
204+
},
205+
{
206+
"sourceDataItems": [
207+
{
208+
"name": "t_Refcntu",
209+
"dataType": "int",
210+
"ordinalPosition": 11
211+
}
212+
],
213+
"targetDataItem": {
214+
"name": "t_Refcntu",
215+
"dataType": "int",
216+
"ordinalPosition": 19
217+
}
218+
},
219+
{
220+
"sourceDataItems": [
221+
{
222+
"name": "t_size",
223+
"dataType": "int",
224+
"ordinalPosition": 5
225+
}
226+
],
227+
"targetDataItem": {
228+
"name": "t_size",
229+
"dataType": "int",
230+
"ordinalPosition": 13
231+
}
232+
},
233+
{
234+
"sourceDataItems": [
235+
{
236+
"name": "t_summ",
237+
"dataType": "int",
238+
"ordinalPosition": 6
239+
}
240+
],
241+
"targetDataItem": {
242+
"name": "t_summ",
243+
"dataType": "int",
244+
"ordinalPosition": 14
245+
}
246+
},
247+
{
248+
"sourceDataItems": [
249+
{
250+
"name": "t_tabl",
251+
"dataType": "nvarchar",
252+
"characterLength": 8,
253+
"ordinalPosition": 1
254+
}
255+
],
256+
"targetDataItem": {
257+
"name": "t_tabl",
258+
"dataType": "nvarchar",
259+
"characterLength": 10,
260+
"ordinalPosition": 9
261+
}
262+
}
263+
],
264+
"businessKeys": [
265+
{
266+
"businessKeyComponentMapping": [
267+
{
268+
"sourceDataItems": [
269+
{
270+
"name": "Company"
271+
}
272+
],
273+
"targetDataItem": {
274+
"name": "Company",
275+
"dataType": "int",
276+
"ordinalPosition": 8
277+
}
278+
},
279+
{
280+
"sourceDataItems": [
281+
{
282+
"name": "t_ccmp",
283+
"dataType": "int",
284+
"ordinalPosition": 9
285+
}
286+
],
287+
"targetDataItem": {
288+
"name": "t_ccmp",
289+
"dataType": "int",
290+
"ordinalPosition": 17
291+
}
292+
},
293+
{
294+
"sourceDataItems": [
295+
{
296+
"name": "t_tabl",
297+
"dataType": "nvarchar",
298+
"characterLength": 8,
299+
"ordinalPosition": 1
300+
}
301+
],
302+
"targetDataItem": {
303+
"name": "t_tabl",
304+
"dataType": "nvarchar",
305+
"characterLength": 10,
306+
"ordinalPosition": 9
307+
}
308+
}
309+
],
310+
"surrogateKey": "Not applicable"
311+
}
312+
],
313+
"filterCriterion": "",
314+
"enabled": true
315+
}
316+
]
317+
}

ClassLibrary/DataWarehouseAutomation/Sample_Metadata/sampleVDW_Sat_Customer_v161.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"relatedDataObjects": [
4040
{
4141
"name": "SAT_CUSTOMER",
42-
"dataObjectClassification": [
42+
"dataObjectClassifications": [
4343
{
4444
"classification": "Lookup",
4545
"notes": "Lookup table related to the source-to-target mapping"

ClassLibrary/DataWarehouseAutomation/Test_Project/Program.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ static void Main(string[] args)
2424
fileList.Add(AppDomain.CurrentDomain.BaseDirectory + @"..\..\..\Sample_Metadata\sampleVDW_StagingArea.json"); // Validating a Json generated by TEAM / VDW
2525
fileList.Add(AppDomain.CurrentDomain.BaseDirectory + @"..\..\..\Sample_Metadata\sampleVDW_HubWithLookup.json"); // Validating a Json generated by TEAM / VDW
2626
fileList.Add(AppDomain.CurrentDomain.BaseDirectory + @"..\..\..\Sample_Metadata\sampleTEAMv16.json"); // Validating a Json generated by TEAM / VDW
27+
fileList.Add(AppDomain.CurrentDomain.BaseDirectory + @"..\..\..\Sample_Metadata\sampleJsonStagingWithPsaDetails.json"); // Validating a Json generated by TEAM / VDW
2728

2829
foreach (string jsonFile in fileList)
2930
{

GenericInterface/interfaceDataWarehouseAutomationMetadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@
206206
"description": "",
207207
"$ref": "#/definitions/dataConnection"
208208
},
209-
"dataObjectClassification": {
209+
"dataObjectClassifications": {
210210
"$id": "#/definitions/dataObject/properties/dataObjectClassification",
211211
"description": "Classification for the dataObject (free form).",
212212
"type": [ "array", "null" ],

0 commit comments

Comments
 (0)