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: 131
Registered: October 2019
Senior Member
Hi,

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?

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


Current Time: Sat Nov 11 08:56:02 GMT 2023

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

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

Back to the top