-
Notifications
You must be signed in to change notification settings - Fork 0
/
mdms-persister.yml
83 lines (58 loc) · 2.57 KB
/
mdms-persister.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
serviceMaps:
serviceName: Mdms-Service
mappings:
- version: 1.0
description: Persists the schema definition
fromTopic: save-mdms-schema-definition
isTransaction: true
queryMaps:
- query: INSERT INTO eg_mdms_schema_definition (id ,tenantid, code, description, definition, isactive, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?);
basePath: $.SchemaDefinition
jsonMaps:
- jsonPath: $.SchemaDefinition.id
- jsonPath: $.SchemaDefinition.tenantId
- jsonPath: $.SchemaDefinition.code
- jsonPath: $.SchemaDefinition.description
- jsonPath: $.SchemaDefinition.definition
type: JSON
dbType: JSONB
- jsonPath: $.SchemaDefinition.isActive
- jsonPath: $.SchemaDefinition.auditDetails.createdBy
- jsonPath: $.SchemaDefinition.auditDetails.lastModifiedBy
- jsonPath: $.SchemaDefinition.auditDetails.createdTime
- jsonPath: $.SchemaDefinition.auditDetails.lastModifiedTime
- version: 1.0
description: Persists the mdms data
fromTopic: save-mdms-data
isTransaction: true
queryMaps:
- query: INSERT INTO eg_mdms_data (id, tenantid, uniqueidentifier, schemacode, data, isactive, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?);
basePath: $.Mdms
jsonMaps:
- jsonPath: $.Mdms.id
- jsonPath: $.Mdms.tenantId
- jsonPath: $.Mdms.uniqueIdentifier
- jsonPath: $.Mdms.schemaCode
- jsonPath: $.Mdms.data
type: JSON
dbType: JSONB
- jsonPath: $.Mdms.isActive
- jsonPath: $.Mdms.auditDetails.createdBy
- jsonPath: $.Mdms.auditDetails.lastModifiedBy
- jsonPath: $.Mdms.auditDetails.createdTime
- jsonPath: $.Mdms.auditDetails.lastModifiedTime
- version: 1.0
description: Updates the mdms data
fromTopic: update-mdms-data
isTransaction: true
queryMaps:
- query: UPDATE eg_mdms_data SET data = ?, isActive = ?, lastModifiedBy = ?, lastModifiedTime = ? WHERE id = ?;
basePath: $.Mdms
jsonMaps:
- jsonPath: $.Mdms.data
type: JSON
dbType: JSONB
- jsonPath: $.Mdms.isActive
- jsonPath: $.Mdms.auditDetails.lastModifiedBy
- jsonPath: $.Mdms.auditDetails.lastModifiedTime
- jsonPath: $.Mdms.id