Child Reference containment/reference problem [message #203595] |
Thu, 28 August 2008 09:35 |
Eclipse User |
|
|
|
Originally posted by: thomasgrimson.hotmail.com
Hallo,
how can I define containment based on reference? For example, "A" contains
"B", "A" contains "C", "B" refers to "C". "A" is the domain top element, I
want to show "B"s as nodes (Top Node Reference), containing inside "C"s
(Child Reference). The problem is, "B" does not contain "C", but only
refers to it- how do I specify the Containment Feature of Child Reference
"C"?
Thanks in advance,
Tom
|
|
|
|
Re: Child Reference containment/reference problem [message #203663 is a reply to message #203617] |
Thu, 28 August 2008 12:31 |
Eclipse User |
|
|
|
Originally posted by: thomasgrimson.hotmail.com
Hello Alex,
first thank you for the quick answer. I tried it, but it does not
validate: "'Containment Feature' must be owned by 'Domain Meta Element' or
its super type of this reference parent Node Mapping".
Here are the mappings: ('A' is domain element in CanvasMapping):
TopNodeReference for 'B'
NodeMapping for 'B'
ChildReference for 'C'
NodeMapping for 'C'
Properties of ChildReference for 'C':
childrenFeature: the reference from B to C
containmentFeature: the containment A contains C
Does the error message imply that the containment should be also from B?
Thank you in advance,
Tom
|
|
|
|
Powered by
FUDForum. Page generated in 0.02943 seconds