Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » checking one of the references can be created
checking one of the references can be created [message #1769945] Sun, 06 August 2017 18:37 Go to next message
Banafsheh A is currently offline Banafsheh AFriend
Messages: 262
Registered: July 2016
Senior Member
Hi,

When I create an instance of "Families" metamodel, It is not possible to e.g., a Member be both (Family) mother and (Family) father or mother and daughter or etc. I want to know which property in its metamodel causes that?

I attached the metamodel and the model.
Re: checking one of the references can be created [message #1769957 is a reply to message #1769945] Mon, 07 August 2017 05:55 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 29325
Registered: July 2009
Senior Member
All the references of Family are containment references. Any instance can only be in at most one containment reference; adding an instance to a containment reference will remove it from any other containment reference where it's currently contained.
Re: checking one of the references can be created [message #1769963 is a reply to message #1769957] Mon, 07 August 2017 06:57 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 5838
Registered: July 2009
Senior Member
Hi

It is very unfortunate that the families and Families2Persons transformation have become standard intro examples.

The containment perverseness of the Families model is very confusing. (There is no actual specification, so it isn't actually a bug; just an offense against common sense.)

Regards

Ed Willink
Re: checking one of the references can be created [message #1770013 is a reply to message #1769963] Mon, 07 August 2017 13:59 Go to previous message
Banafsheh A is currently offline Banafsheh AFriend
Messages: 262
Registered: July 2016
Senior Member
Thanks a lot all
Previous Topic:[EMF Forms] EClass from View model cannot be resolved
Next Topic:[EMF Forms] Target Platform Update Site for 1.13 unavailable?
Goto Forum:
  


Current Time: Mon Apr 23 21:39:56 GMT 2018

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

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