Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » UML 2 ecore and association.navigableOwnedEnd(UML 2 ecore and association.navigableOwnedEnd)
UML 2 ecore and association.navigableOwnedEnd [message #818955] Mon, 12 March 2012 06:11 Go to next message
Fabien Giquel is currently offline Fabien Giquel
Messages: 136
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
4, rue du Ch√Ęteau de l'Eraudiere
44324 NANTES CEDEX 03
----------------------------------------------------
Re: UML 2 ecore and association.navigableOwnedEnd [message #818974 is a reply to message #818955] Mon, 12 March 2012 06:29 Go to previous message
Ed Willink is currently offline Ed Willink
Messages: 3844
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.
Previous Topic:Semantic annotations for UML elements
Next Topic:UML2 Product in Bugzilla
Goto Forum:
  


Current Time: Mon Apr 21 05:53:59 EDT 2014

Powered by FUDForum. Page generated in 0.01749 seconds