Associations to EReferences in UML2 profile to .ecore/.genmodel [message #1857705] |
Tue, 21 February 2023 16:51  |
Eclipse User |
|
|
|
Hi, I have a question about the transformation from UML2 to Ecore/genmodel for a Papyrus profile. (I'm not sure if I should it post it here, or in the EMF forum or the Papyrus forum; apologies if it is more suitable for any of the other forums).
Basically I have a simple profile in which I define a (containment) association between two stereotypes (see screen-shot and attached project) called "Contraption" and "Gizmo", with the association going from "Contraption" to "Gizmo". However, when I generate the corresponding .genmodel and .ecore from the .uml file (using the standard "New -> Other... -> EMF Generator Model approach) there is no EReference in "Contraption" pointing to "Gizmo", (see screen shot and attached project).
My question is whether this is a bug or is it expected behaviour from the genmodel generator?
If it is expected that EReferences are not generated from Associations, what is the "proper" way to generate such references? Perhaps an annotation on the association? Or Perhaps create a property in the container object with the "EReference" stereotype? Or is there another way?
Thanks
PS: I'm using Papyrus 4.8 (2020-06) and the UML2 Extender SDK 5.5.1
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.66849 seconds