|Linking values in compositions [message #1823338]
||Wed, 25 March 2020 09:00
| Avi Shaked
Registered: October 2019
I have two classes with compsition relations (ClassA comprises ClassB).
I want all instances of ClassB to automatically take the name ClassA.name upon instantiation and store it in ClassB.typeName.
For example, if ClassA is "family" and ClassB is a "person" (assume that person exists only in context of family), then I first create a family typed instance with name set to "surnameX". Next, I want to be able to create persons, and that each person will automatically have personY.surName set to "surnameX".
Is this possible using Ecore Tools?
Powered by FUDForum
. Page generated in 0.02092 seconds