UML 2 ecore and association.navigableOwnedEnd [message #818955] |
Mon, 12 March 2012 10:11 |
Fabien Giquel Messages: 147 Registered: July 2009 |
Senior Member |
|
|
Hi,
I am using uml to ecore converter for initializing some EMF project from one uml model. If i create some uml model with two classes and one bidirectional association between them, i see that :
- if uml properties (roles) are owned by the uml classes, the ecore will define references between classes. That's fine.
- however if uml properties are owned by the uml association in indicating them as "navigableOwnedEnd" on the association, the ecore will not define references between the two classes.
Is this second behavior known and wished for uml2ecore conversion ? Or is that some uml2ecore issue ?
Thanks un advance,
Fabien.
----------------------------------------------------
Fabien GIQUEL
R&D Engineer
Mia-Software
rue Nina Simone
44000 NANTES
----------------------------------------------------
|
|
|
Re: UML 2 ecore and association.navigableOwnedEnd [message #818974 is a reply to message #818955] |
Mon, 12 March 2012 10:29 |
Ed Willink Messages: 7655 Registered: July 2009 |
Senior Member |
|
|
Hi Fabien
I agree that it is surprising, but it is also reasonable.
When the ends are association-owned, the relevant classes have no
corresponding properties, so to create such 'properties' in Ecore (or
EMOF) would be differently surprising.
EMOF/Ecore is not UML and Associations are one of the most fundamental
differences between them.
There are many processing options for the UML2Ecore converter; it is
possible that one of them can be used to influence the above behaviour.
Regards
Ed Willink
On 12/03/2012 10:11, Fabien Giquel wrote:
> Hi,
>
> I am using uml to ecore converter for initializing some EMF project
> from one uml model. If i create some uml model with two classes and
> one bidirectional association between them, i see that :
>
> - if uml properties (roles) are owned by the uml classes, the ecore
> will define references between classes. That's fine.
> - however if uml properties are owned by the uml association in
> indicating them as "navigableOwnedEnd" on the association, the ecore
> will not define references between the two classes.
>
> Is this second behavior known and wished for uml2ecore conversion ? Or
> is that some uml2ecore issue ?
>
> Thanks un advance,
> Fabien.
|
|
|
Powered by
FUDForum. Page generated in 0.02932 seconds