我遇到了一个关于 EMF 的非常基本的问题,这就是我所拥有的。
EClass A:
aID : EInteger (Key: true)
EClass B:
bID : EInteger (Key: true)
EClass C:
Reference refA: to elements of A, containment: true, EKeys: aID, 0 .. n
Reference refB: to elements of B, containment: true, EKeys: bID, 0 .. n
现在问题来了。在我的 a 和 b 列表中,我希望有从 0 到 n 的 ID。但是,当我这样做时,我收到以下消息:
The ID '1' of 'A' collides with that of 'B'
我希望我的问题描述清楚。有谁知道我做错了什么?谢谢!