Skip to content

Commit 60a1cf1

Browse files
committed
fix(model-sync-lib): use existing id property key
1 parent a2385d9 commit 60a1cf1

File tree

1 file changed

+2
-2
lines changed
  • model-api/src/commonMain/kotlin/org/modelix/model/data

1 file changed

+2
-2
lines changed

model-api/src/commonMain/kotlin/org/modelix/model/data/ModelData.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ data class ModelData(
6161
t: IWriteTransaction,
6262
nodeId: Long
6363
) {
64-
val key = "originalId"
64+
val key = NodeData.idPropertyKey
6565
t.setProperty(nodeId, key, nodeData.properties[key] ?: nodeData.id)
6666
}
6767

@@ -81,7 +81,7 @@ data class NodeData(
8181
val references: Map<String, String> = emptyMap()
8282
) {
8383
companion object {
84-
const val idPropertyKey = "originalId"
84+
const val idPropertyKey = "#mpsNodeId#"
8585
}
8686
}
8787

0 commit comments

Comments
 (0)