One-to-many in GMF [message #202666] |
Wed, 20 August 2008 09:11  |
Eclipse User |
|
|
|
Originally posted by: mikko.laakso.avoidspam.com
Hello all,
I would like to know if GMF supports one-to-many relations. I got an Ecore
metamodel, which allows them. I just use an object with "from" 0..1/"to"
0..* relations. I generate this as a connection, but when I try to use
this feature, new connection is created instead of new "to"-relation. So
what I get is two connections instead of one. I can use the property
editor and select another "to"-relation, but it doesn't show in the graph
- intuitively, I would expect an arrow drawn to the diagram.
--
Mikko Laakso
|
|
|
Re: One-to-many in GMF [message #202691 is a reply to message #202666] |
Wed, 20 August 2008 10:12  |
Eclipse User |
|
|
|
Hello Mikko,
Each connection (diagram link) can represent either "type link" (link with
associated domain node entity) or "reference link" (visualizing reference
from the domain model). So, looks like in your use case it is necessary to
patch generated code manually AFAIU.
-----------------
Alex Shatalin
|
|
|
Powered by
FUDForum. Page generated in 0.04075 seconds