Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Ecore Tools » Linking values in compositions
Linking values in compositions [message #1823338] Wed, 25 March 2020 09:00
Avi Shaked is currently offline Avi ShakedFriend
Messages: 117
Registered: October 2019
Senior Member

I have two classes with compsition relations (ClassA comprises ClassB).
I want all instances of ClassB to automatically take the 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?

Previous Topic:model instantiation with default model object type
Next Topic:classes missing when importing model package
Goto Forum:

Current Time: Wed Nov 25 11:28:55 GMT 2020

Powered by FUDForum. Page generated in 0.01243 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top