File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
bulk-model-sync-lib/src/commonMain/kotlin/org/modelix/model/sync/bulk Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -265,7 +265,7 @@ class ModelImporter(
265
265
}
266
266
267
267
private fun syncProperties (node : INode , nodeData : NodeData ) {
268
- if (node.getPropertyValue( NodeData .idPropertyKey ) == null ) {
268
+ if (node.originalId( ) == null ) {
269
269
node.setPropertyValue(NodeData .idPropertyKey, nodeData.originalId())
270
270
}
271
271
@@ -303,11 +303,11 @@ class ModelImporter(
303
303
}
304
304
305
305
internal fun INode.originalId (): String? {
306
- return this .getPropertyValue( NodeData .idPropertyKey )
306
+ return this .getOriginalReference( )
307
307
}
308
308
309
309
internal fun NodeData.originalId (): String? {
310
- return properties[NodeData .idPropertyKey ] ? : id
310
+ return properties[NodeData .ID_PROPERTY_KEY ] ? : id
311
311
}
312
312
313
313
data class ExistingAndExpectedNode (
You can’t perform that action at this time.
0 commit comments