Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 Tools » Re: Associations lost when converting from UML
Re: Associations lost when converting from UML [message #474567] Tue, 08 July 2008 11:38 Go to next message
Felix Dorner is currently offline Felix Dorner
Messages: 675
Registered: July 2009
Senior Member
Barbara Rosi-Schwartz wrote:
> On 2008-07-08 15:43:27 +0100, Felix Dorner <felix_do@web.de> said:
>
>>
>>>
>>> Barbara Rosi-Schwartz wrote:
>>>> Hi everyone.
>>>>
>>>> I have a UML model that I created with Eclipse's UML2. When I try to
>>>> convert it to an EMF model, everything is loaded correctly (apart
>>>> from a few warnings that are alien to my model) except for the
>>>> associations. The associations are compositions or aggregations. I
>>>> also have a couple of generalisations and those are converted fine.
>>>>
>>>> Any idea?
>>
>> Who owns the Association Ends?
>
> Hi Felix and thanks for the speedy reply.
>
> Since the associations are unidirectional, I believe one should belong
> to the end type and the other to the association itself.

I guess you mean the opposite end type. This sounds ok.

>
> However I created the model with the graphical editor, as opposed to
> filling in properties, and when I look at the corresponding properties,
> properties such as "aggregation" are set to "none", even though I
> explicitly chose a composition. Should I be filling in properties by hand?

I never really worked with UML2Tools, they have their own group too.

> Also, how do I tell who owns the association ends in the model itself?

Just look at the parent of each end. This is the owner.
Re: Associations lost when converting from UML [message #474572 is a reply to message #474567] Wed, 09 July 2008 09:38 Go to previous messageGo to next message
Barbara Rosi-Schwartz is currently offline Barbara Rosi-Schwartz
Messages: 448
Registered: July 2009
Senior Member
On 2008-07-08 16:38:04 +0100, Felix Dorner <felix_do@web.de> said:

> Barbara Rosi-Schwartz wrote:
>> On 2008-07-08 15:43:27 +0100, Felix Dorner <felix_do@web.de> said:
>>
>>>
>>>>
>>>> Barbara Rosi-Schwartz wrote:
>>>>> Hi everyone.
>>>>>
>>>>> I have a UML model that I created with Eclipse's UML2. When I try to
>>>>> convert it to an EMF model, everything is loaded correctly (apart from
>>>>> a few warnings that are alien to my model) except for the associations.
>>>>> The associations are compositions or aggregations. I also have a couple
>>>>> of generalisations and those are converted fine.
>>>>>
>>>>> Any idea?
>>>
>>> Who owns the Association Ends?
>>
>> Hi Felix and thanks for the speedy reply.
>>
>> Since the associations are unidirectional, I believe one should belong
>> to the end type and the other to the association itself.
>
> I guess you mean the opposite end type. This sounds ok.
>
>>
>> However I created the model with the graphical editor, as opposed to
>> filling in properties, and when I look at the corresponding properties,
>> properties such as "aggregation" are set to "none", even though I
>> explicitly chose a composition. Should I be filling in properties by
>> hand?
>
> I never really worked with UML2Tools, they have their own group too.
>
>> Also, how do I tell who owns the association ends in the model itself?
>
> Just look at the parent of each end. This is the owner.

Thanks.

So, where to go from here regarding my original problem?
B.

--
                                  Barbara Rosi-Schwartz
                   Etish Limited [http://www.etish.org]
Blog: http://www.brs4etish.blogspot.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   ^...^
 /  o,o  \       The proud parents of Useme
 |) ::: (|       The Open Requirements Management Tool
====w=w====      [https://useme.dev.java.net]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Re: Associations lost when converting from UML [message #474574 is a reply to message #474572] Wed, 09 July 2008 11:45 Go to previous messageGo to next message
Felix Dorner is currently offline Felix Dorner
Messages: 675
Registered: July 2009
Senior Member
>>>>>> I have a UML model that I created with Eclipse's UML2. When I try
>>>>>> to convert it to an EMF model, everything is loaded correctly
>>>>>> (apart from a few warnings that are alien to my model) except for
>>>>>> the associations. The associations are compositions or
>>>>>> aggregations. I also have a couple of generalisations and those
>>>>>> are converted fine.

You could send us an example model, that when converting to ecore, shows
the behaviour you mentioned.
Re: Associations lost when converting from UML [message #474575 is a reply to message #474572] Wed, 09 July 2008 16:46 Go to previous messageGo to next message
Dave Carlson is currently offline Dave Carlson
Messages: 399
Registered: July 2009
Senior Member
Hi Barbara,

What UML editor are you using to create your model? If using Topcased, it
will always create associations with both ends owned by the Association, and
this model style (although valid UML), is not compatible with the Ecore
generation.

Many other UML editors will always represent navigable association end
properties as owned by the source class, or maybe have an option to create
them this way. This is the only representation supported by Ecore
generation.

UML 2 allows a navigable association end (a Property) to be owned either by
the source class of the association, or by the Association itself. When a
navigable end is owned by the Association, the Property's isNavigable
attribute must be 'true'. This latter approach is valid, but not supported
by the UML-to-Ecore, so these navigable properties (owned by the
Association) will never appear in the resulting EMF.

Does this help explain the situation?

Regards,
Dave Carlson

>
> Thanks.
>
> So, where to go from here regarding my original problem?
> B.
>
> --
> Barbara Rosi-Schwartz
> Etish Limited [http://www.etish.org]
> Blog: http://www.brs4etish.blogspot.com
Re: Associations lost when converting from UML [message #474576 is a reply to message #474575] Thu, 10 July 2008 05:03 Go to previous messageGo to next message
Barbara Rosi-Schwartz is currently offline Barbara Rosi-Schwartz
Messages: 448
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
----------------6839304162016585446
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit

On 2008-07-09 21:46:50 +0100, "Dave Carlson" <dcarlson@xmlmodeling.com> said:

> Hi Barbara,
>
> What UML editor are you using to create your model? If using Topcased, it
> will always create associations with both ends owned by the Association, and
> this model style (although valid UML), is not compatible with the Ecore
> generation.
>
> Many other UML editors will always represent navigable association end
> properties as owned by the source class, or maybe have an option to create
> them this way. This is the only representation supported by Ecore
> generation.
>
> UML 2 allows a navigable association end (a Property) to be owned either by
> the source class of the association, or by the Association itself. When a
> navigable end is owned by the Association, the Property's isNavigable
> attribute must be 'true'. This latter approach is valid, but not supported
> by the UML-to-Ecore, so these navigable properties (owned by the
> Association) will never appear in the resulting EMF.
>
> Does this help explain the situation?
>
> Regards,
> Dave Carlson
>

Dave and Felix, thank you both.

The editor I am using is Eclipse's own UML2 editor, which is
instantiated when I request New --> UML 2.1 Diagrams --> Class Diagram.

I have been looking through the properties of my associations, but I do
not see an isNavigable attribute. Where is it located?

In any case, I have created a very small sample model with two classes
and an association between them of the type that I have in my own
model. When I create an EMF project and import the UML model into it,
the resulting Ecore model is missing the association. I am attaching a
zip file with both en "example" project containing the UML model and an
"example.emf" project containing the resulting Ecore model.

I am sure this way it will be easier for you to spot where I am going wrong.

Thanks again,
B.

----------------6839304162016585446
Content-Type: image/jpeg; name="uml-ecore-test.zip"
Content-Transfer-Encoding: base64
Content-Disposition: inline; filename="uml-ecore-test.zip"

UEsDBBQACAAIABK76TgAAAAAAAAAAAAAAAAQAAAAZXhhbXBsZS8ucHJvamVj dLOxr8jNUShL
LSrOzM+zVTLUM1BSSM1Lzk/JzEu3VQoNcdO1ULK347IpKMrPSk0ucUktTi7K LCgBKrbj4rTJ
S8xNtUutSMwtyEm10QfzgKLJ+bm5qXkldjb6MBZQEGpAMYitj8xJKs3MSQku SE0Gy6Dw8hJL
SotSIVrgbLhuFLcAAFBLBwg0HxvSgQAAAMgAAABQSwMEFAAIAAgAErvpOAAA AAAAAAAAAAAA
ADIAAABleGFtcGxlLy5zZXR0aW5ncy9vcmcuZWNsaXBzZS5jb3JlLnJlc291 cmNlcy5wcmVm
c1MOT01R8CrNUTCwVDAytjI0szIwV3AKDlEwMjCw4EpNzsksKE7VKyhKTUst Ss1LTi3WK0st
Ks7Mz7M15ALy81My89L1S1KLS/RKc3NsQ0PcdC0wxZNzEouLoZIAUEsHCP/R AadcAAAAcQAA
AFBLAwQUAAgACAASu+k4AAAAAAAAAAAAAAAAEAAAAGV4YW1wbGUvdGVzdC51 bWzVV11P2zAU
fedXRN7zEgoTsKoFpSNonZpRoGFlL8hNLqlVf0S20wK/fk5oS/phOvqwjpdI cezjc869vr5p
nD0y6oxBKiJ4E9XcfeQAj0VCeNpEUe/i8wk6O91r5IzWuzge4RScR0bq8xUH bg2ZEcpV3Yw3
0VDrrO55Kh4Cw65gqStk6qkMYq8ftr3KdAM5nz6ZTFyIKckUlPPNt4Nirrvv RWEHlVuSpInu
u1JnJ8HhSZAchJc/wqh727mr+cjhmEETTRmi0z3HaQAFBly3WSakriCosBOs IhRLzCJSzoYk
eFlcLtNPmcEuHZ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AErvpOEf/UMy7AgAARw4AABAAAAAAAAAAAAAAAAAA ewEAAGV4YW1w
bGUvdGVzdC51bWxQSwECFAAUAAgACAASu+k4RARgZuoEAABTJAAAFQAAAAAA AAAAAAAAAAB0
BAAAZXhhbXBsZS90ZXN0LnVtbGNsYXNzUEsBAhQAFAAIAAgAErvpOKOEFIe1 AAAAJQEAABYA
AAAAAAAAAAAAAAAAoQkAAGV4YW1wbGUuZW1mLy5jbGFzc3BhdGhQSwECFAAU AAgACAASu+k4
NSRM/OUAAACEAgAAFAAAAAAAAAAAAAAAAACaCgAAZXhhbXBsZS5lbWYvLnBy b2plY3RQSwEC
FAAUAAgACAASu+k4mFBI02gAAABoAAAANgAAAAAAAAAAAAAAAADBCwAAZXhh bXBsZS5lbWYv
LnNldHRpbmdzL29yZy5lY2xpcHNlLmNvcmUucmVzb3VyY2VzLnByZWZzUEsB AhQAFAAIAAgA
ErvpOJZfEEaWAQAASwcAAB8AAAAAAAAAAAAAAAAAjQwAAGV4YW1wbGUuZW1m L21vZGVsL1Bh
Y2thZ2UuZWNvcmVQSwECFAAUAAgACAASu+k4DJoBQzkCAACFDQAAJwAAAAAA AAAAAAAAAABw
DgAAZXhhbXBsZS5lbWYvbW9kZWwvUGFja2FnZS5lY29yZV9kaWFncmFtUEsB AhQAFAAIAAgA
ErvpOACP6OQyAwAAoQsAAB8AAAAAAAAAAAAAAAAA/hAAAGV4YW1wbGUuZW1m L21vZGVsL3Rl
c3QuZ2VubW9kZWxQSwUGAAAAAAoACgD4AgAAfRQAAAAA

----------------6839304162016585446--
Re: Associations lost when converting from UML [message #474577 is a reply to message #474576] Thu, 10 July 2008 06:24 Go to previous messageGo to next message
Felix Dorner is currently offline Felix Dorner
Messages: 675
Registered: July 2009
Senior Member
Hi Rosi,

from looking at the serialized uml model, I can see that the ends of
your Association are owned by the Association. You can see this also in
the tree model viewer, as the Association has two children that
represent the two ends. This kind of Association model is not supported
by the UML2Ecore transformation process.

Look at how the Associations are created in the Article below.
I think this should transform okay. The decisive point is, who owns the
association's end properties.


http://www.eclipse.org/modeling/mdt/uml2/docs/articles/Getti ng_Started_with_UML2/article.html

Hope that helps.
Felix
Re: Associations lost when converting from UML [message #474578 is a reply to message #474577] Thu, 10 July 2008 12:06 Go to previous messageGo to next message
Barbara Rosi-Schwartz is currently offline Barbara Rosi-Schwartz
Messages: 448
Registered: July 2009
Senior Member
On 2008-07-10 11:24:21 +0100, Felix Dorner <felix_do@web.de> said:

>
> Hi Rosi,
>
> from looking at the serialized uml model, I can see that the ends of
> your Association are owned by the Association. You can see this also in
> the tree model viewer, as the Association has two children that
> represent the two ends. This kind of Association model is not supported
> by the UML2Ecore transformation process.
>
> Look at how the Associations are created in the Article below.
> I think this should transform okay. The decisive point is, who owns the
> association's end properties.
>
>
> http://www.eclipse.org/modeling/mdt/uml2/docs/articles/Getti ng_Started_with_UML2/article.html

Hope
>
> that helps.
> Felix


Felix,

thanks for looking this through. I finally understand: when I move the
properties to their respective classes, the transformation works ok.

Thanks again and kind regards,
B.

--
                                  Barbara Rosi-Schwartz
                   Etish Limited [http://www.etish.org]
Blog: http://www.brs4etish.blogspot.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   ^...^
 /  o,o  \       The proud parents of Useme
 |) ::: (|       The Open Requirements Management Tool
====w=w====      [https://useme.dev.java.net]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Re: Associations lost when converting from UML [message #474579 is a reply to message #474578] Thu, 10 July 2008 12:53 Go to previous messageGo to next message
Felix Dorner is currently offline Felix Dorner
Messages: 675
Registered: July 2009
Senior Member
Hey Barbara

first, I am sorry for calling you Rosi. I am from Germany where this
used to be a first name (shortcut) which is dying out. I was so
delighted by seeing this - I thought its your first name, well..

Anyway, there is a cool article by Ed Merks about Associations and Ecore
here:

http://ed-merks.blogspot.com/2008/01/modeling-associations-w ith-ecore.html

Felix
Re: Associations lost when converting from UML [message #474681 is a reply to message #474579] Fri, 11 July 2008 06:29 Go to previous messageGo to next message
Barbara Rosi-Schwartz is currently offline Barbara Rosi-Schwartz
Messages: 448
Registered: July 2009
Senior Member
On 2008-07-10 17:53:44 +0100, Felix Dorner <felix_do@web.de> said:

> Hey Barbara
>
> first, I am sorry for calling you Rosi. I am from Germany where this
> used to be a first name (shortcut) which is dying out. I was so
> delighted by seeing this - I thought its your first name, well..
>
> Anyway, there is a cool article by Ed Merks about Associations and Ecore here:
>
> http://ed-merks.blogspot.com/2008/01/modeling-associations-w ith-ecore.html
>
> Felix

Felix,

Great article, thanks, just what I needed!

As a consolation, I can offer the fact that, although my name is not
German, half of my surname (Schwartz) is!... ;-)

And I do love Germany, I'm even thinking of moving there at some point.

Tschuess,
B.

--
                                  Barbara Rosi-Schwartz
                   Etish Limited [http://www.etish.org]
Blog: http://www.brs4etish.blogspot.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   ^...^
 /  o,o  \       The proud parents of Useme
 |) ::: (|       The Open Requirements Management Tool
====w=w====      [https://useme.dev.java.net]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Re: Associations lost when converting from UML [message #474686 is a reply to message #474577] Mon, 14 July 2008 12:14 Go to previous messageGo to next message
Jochen Wuttke is currently offline Jochen Wuttke
Messages: 41
Registered: July 2009
Member
Felix Dorner wrote:
>
> Hi Rosi,
>
> from looking at the serialized uml model, I can see that the ends of
> your Association are owned by the Association. You can see this also in
> the tree model viewer, as the Association has two children that
> represent the two ends. This kind of Association model is not supported
> by the UML2Ecore transformation process.
>

Is there a place where the UML2Ecore transformation is documented?
Google didn't help me much in finding documentation for this, and as I
played with it for a bit I had similar problems with associations.

Jochen
Re: Associations lost when converting from UML [message #475678 is a reply to message #474686] Thu, 02 October 2008 09:29 Go to previous message
Kenn Hussey is currently offline Kenn Hussey
Messages: 1618
Registered: July 2009
Senior Member
Jochen,

Unfortunately, there isn't. We've long recognized the need for such an
article, but haven't been able to find the time to write one... Perhaps
someone in the community would be interested in making such a
contribution...

Kenn

"Jochen" <jochen.wuttke@gmx.de> wrote in message
news:g5fu1a$hh$1@build.eclipse.org...
> Felix Dorner wrote:
>>
>> Hi Rosi,
>>
>> from looking at the serialized uml model, I can see that the ends of your
>> Association are owned by the Association. You can see this also in the
>> tree model viewer, as the Association has two children that represent the
>> two ends. This kind of Association model is not supported by the
>> UML2Ecore transformation process.
>>
>
> Is there a place where the UML2Ecore transformation is documented? Google
> didn't help me much in finding documentation for this, and as I played
> with it for a bit I had similar problems with associations.
>
> Jochen
Re: Associations lost when converting from UML [message #620484 is a reply to message #474567] Wed, 09 July 2008 09:38 Go to previous message
Barbara Rosi-Schwartz is currently offline Barbara Rosi-Schwartz
Messages: 448
Registered: July 2009
Senior Member
On 2008-07-08 16:38:04 +0100, Felix Dorner <felix_do@web.de> said:

> Barbara Rosi-Schwartz wrote:
>> On 2008-07-08 15:43:27 +0100, Felix Dorner <felix_do@web.de> said:
>>
>>>
>>>>
>>>> Barbara Rosi-Schwartz wrote:
>>>>> Hi everyone.
>>>>>
>>>>> I have a UML model that I created with Eclipse's UML2. When I try to
>>>>> convert it to an EMF model, everything is loaded correctly (apart from
>>>>> a few warnings that are alien to my model) except for the associations.
>>>>> The associations are compositions or aggregations. I also have a couple
>>>>> of generalisations and those are converted fine.
>>>>>
>>>>> Any idea?
>>>
>>> Who owns the Association Ends?
>>
>> Hi Felix and thanks for the speedy reply.
>>
>> Since the associations are unidirectional, I believe one should belong
>> to the end type and the other to the association itself.
>
> I guess you mean the opposite end type. This sounds ok.
>
>>
>> However I created the model with the graphical editor, as opposed to
>> filling in properties, and when I look at the corresponding properties,
>> properties such as "aggregation" are set to "none", even though I
>> explicitly chose a composition. Should I be filling in properties by
>> hand?
>
> I never really worked with UML2Tools, they have their own group too.
>
>> Also, how do I tell who owns the association ends in the model itself?
>
> Just look at the parent of each end. This is the owner.

Thanks.

So, where to go from here regarding my original problem?
B.

--
                                  Barbara Rosi-Schwartz
                   Etish Limited [http://www.etish.org]
Blog: http://www.brs4etish.blogspot.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   ^...^
 /  o,o  \       The proud parents of Useme
 |) ::: (|       The Open Requirements Management Tool
====w=w====      [https://useme.dev.java.net]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Re: Associations lost when converting from UML [message #621249 is a reply to message #474572] Wed, 09 July 2008 11:45 Go to previous message
Felix Dorner is currently offline Felix Dorner
Messages: 675
Registered: July 2009
Senior Member
>>>>>> I have a UML model that I created with Eclipse's UML2. When I try
>>>>>> to convert it to an EMF model, everything is loaded correctly
>>>>>> (apart from a few warnings that are alien to my model) except for
>>>>>> the associations. The associations are compositions or
>>>>>> aggregations. I also have a couple of generalisations and those
>>>>>> are converted fine.

You could send us an example model, that when converting to ecore, shows
the behaviour you mentioned.
Re: Associations lost when converting from UML [message #621250 is a reply to message #474572] Wed, 09 July 2008 16:46 Go to previous message
Dave Carlson is currently offline Dave Carlson
Messages: 399
Registered: July 2009
Senior Member
Hi Barbara,

What UML editor are you using to create your model? If using Topcased, it
will always create associations with both ends owned by the Association, and
this model style (although valid UML), is not compatible with the Ecore
generation.

Many other UML editors will always represent navigable association end
properties as owned by the source class, or maybe have an option to create
them this way. This is the only representation supported by Ecore
generation.

UML 2 allows a navigable association end (a Property) to be owned either by
the source class of the association, or by the Association itself. When a
navigable end is owned by the Association, the Property's isNavigable
attribute must be 'true'. This latter approach is valid, but not supported
by the UML-to-Ecore, so these navigable properties (owned by the
Association) will never appear in the resulting EMF.

Does this help explain the situation?

Regards,
Dave Carlson

>
> Thanks.
>
> So, where to go from here regarding my original problem?
> B.
>
> --
> Barbara Rosi-Schwartz
> Etish Limited [http://www.etish.org]
> Blog: http://www.brs4etish.blogspot.com
Re: Associations lost when converting from UML [message #621251 is a reply to message #474575] Thu, 10 July 2008 05:03 Go to previous message
Barbara Rosi-Schwartz is currently offline Barbara Rosi-Schwartz
Messages: 448
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
----------------6839304162016585446
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit

On 2008-07-09 21:46:50 +0100, "Dave Carlson" <dcarlson@xmlmodeling.com> said:

> Hi Barbara,
>
> What UML editor are you using to create your model? If using Topcased, it
> will always create associations with both ends owned by the Association, and
> this model style (although valid UML), is not compatible with the Ecore
> generation.
>
> Many other UML editors will always represent navigable association end
> properties as owned by the source class, or maybe have an option to create
> them this way. This is the only representation supported by Ecore
> generation.
>
> UML 2 allows a navigable association end (a Property) to be owned either by
> the source class of the association, or by the Association itself. When a
> navigable end is owned by the Association, the Property's isNavigable
> attribute must be 'true'. This latter approach is valid, but not supported
> by the UML-to-Ecore, so these navigable properties (owned by the
> Association) will never appear in the resulting EMF.
>
> Does this help explain the situation?
>
> Regards,
> Dave Carlson
>

Dave and Felix, thank you both.

The editor I am using is Eclipse's own UML2 editor, which is
instantiated when I request New --> UML 2.1 Diagrams --> Class Diagram.

I have been looking through the properties of my associations, but I do
not see an isNavigable attribute. Where is it located?

In any case, I have created a very small sample model with two classes
and an association between them of the type that I have in my own
model. When I create an EMF project and import the UML model into it,
the resulting Ecore model is missing the association. I am attaching a
zip file with both en "example" project containing the UML model and an
"example.emf" project containing the resulting Ecore model.

I am sure this way it will be easier for you to spot where I am going wrong.

Thanks again,
B.

----------------6839304162016585446
Content-Type: image/jpeg; name="uml-ecore-test.zip"
Content-Transfer-Encoding: base64
Content-Disposition: inline; filename="uml-ecore-test.zip"

UEsDBBQACAAIABK76TgAAAAAAAAAAAAAAAAQAAAAZXhhbXBsZS8ucHJvamVj dLOxr8jNUShL
LSrOzM+zVTLUM1BSSM1Lzk/JzEu3VQoNcdO1ULK347IpKMrPSk0ucUktTi7K LCgBKrbj4rTJ
S8xNtUutSMw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SwEC
FAAUAAgACAASu+k4mFBI02gAAABoAAAANgAAAAAAAAAAAAAAAADBCwAAZXhh bXBsZS5lbWYv
LnNldHRpbmdzL29yZy5lY2xpcHNlLmNvcmUucmVzb3VyY2VzLnByZWZzUEsB AhQAFAAIAAgA
ErvpOJZfEEaWAQAASwcAAB8AAAAAAAAAAAAAAAAAjQwAAGV4YW1wbGUuZW1m L21vZGVsL1Bh
Y2thZ2UuZWNvcmVQSwECFAAUAAgACAASu+k4DJoBQzkCAACFDQAAJwAAAAAA AAAAAAAAAABw
DgAAZXhhbXBsZS5lbWYvbW9kZWwvUGFja2FnZS5lY29yZV9kaWFncmFtUEsB AhQAFAAIAAgA
ErvpOACP6OQyAwAAoQsAAB8AAAAAAAAAAAAAAAAA/hAAAGV4YW1wbGUuZW1m L21vZGVsL3Rl
c3QuZ2VubW9kZWxQSwUGAAAAAAoACgD4AgAAfRQAAAAA

----------------6839304162016585446--
Re: Associations lost when converting from UML [message #621252 is a reply to message #474576] Thu, 10 July 2008 06:24 Go to previous message
Felix Dorner is currently offline Felix Dorner
Messages: 675
Registered: July 2009
Senior Member
Hi Rosi,

from looking at the serialized uml model, I can see that the ends of
your Association are owned by the Association. You can see this also in
the tree model viewer, as the Association has two children that
represent the two ends. This kind of Association model is not supported
by the UML2Ecore transformation process.

Look at how the Associations are created in the Article below.
I think this should transform okay. The decisive point is, who owns the
association's end properties.


http://www.eclipse.org/modeling/mdt/uml2/docs/articles/Getti ng_Started_with_UML2/article.html

Hope that helps.
Felix
Re: Associations lost when converting from UML [message #621254 is a reply to message #474577] Thu, 10 July 2008 12:06 Go to previous message
Barbara Rosi-Schwartz is currently offline Barbara Rosi-Schwartz
Messages: 448
Registered: July 2009
Senior Member
On 2008-07-10 11:24:21 +0100, Felix Dorner <felix_do@web.de> said:

>
> Hi Rosi,
>
> from looking at the serialized uml model, I can see that the ends of
> your Association are owned by the Association. You can see this also in
> the tree model viewer, as the Association has two children that
> represent the two ends. This kind of Association model is not supported
> by the UML2Ecore transformation process.
>
> Look at how the Associations are created in the Article below.
> I think this should transform okay. The decisive point is, who owns the
> association's end properties.
>
>
> http://www.eclipse.org/modeling/mdt/uml2/docs/articles/Getti ng_Started_with_UML2/article.html

Hope
>
> that helps.
> Felix


Felix,

thanks for looking this through. I finally understand: when I move the
properties to their respective classes, the transformation works ok.

Thanks again and kind regards,
B.

--
                                  Barbara Rosi-Schwartz
                   Etish Limited [http://www.etish.org]
Blog: http://www.brs4etish.blogspot.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   ^...^
 /  o,o  \       The proud parents of Useme
 |) ::: (|       The Open Requirements Management Tool
====w=w====      [https://useme.dev.java.net]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Re: Associations lost when converting from UML [message #621255 is a reply to message #474578] Thu, 10 July 2008 12:53 Go to previous message
Felix Dorner is currently offline Felix Dorner
Messages: 675
Registered: July 2009
Senior Member
Hey Barbara

first, I am sorry for calling you Rosi. I am from Germany where this
used to be a first name (shortcut) which is dying out. I was so
delighted by seeing this - I thought its your first name, well..

Anyway, there is a cool article by Ed Merks about Associations and Ecore
here:

http://ed-merks.blogspot.com/2008/01/modeling-associations-w ith-ecore.html

Felix
Re: Associations lost when converting from UML [message #621256 is a reply to message #474579] Fri, 11 July 2008 06:29 Go to previous message
Barbara Rosi-Schwartz is currently offline Barbara Rosi-Schwartz
Messages: 448
Registered: July 2009
Senior Member
On 2008-07-10 17:53:44 +0100, Felix Dorner <felix_do@web.de> said:

> Hey Barbara
>
> first, I am sorry for calling you Rosi. I am from Germany where this
> used to be a first name (shortcut) which is dying out. I was so
> delighted by seeing this - I thought its your first name, well..
>
> Anyway, there is a cool article by Ed Merks about Associations and Ecore here:
>
> http://ed-merks.blogspot.com/2008/01/modeling-associations-w ith-ecore.html
>
> Felix

Felix,

Great article, thanks, just what I needed!

As a consolation, I can offer the fact that, although my name is not
German, half of my surname (Schwartz) is!... ;-)

And I do love Germany, I'm even thinking of moving there at some point.

Tschuess,
B.

--
                                  Barbara Rosi-Schwartz
                   Etish Limited [http://www.etish.org]
Blog: http://www.brs4etish.blogspot.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   ^...^
 /  o,o  \       The proud parents of Useme
 |) ::: (|       The Open Requirements Management Tool
====w=w====      [https://useme.dev.java.net]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Re: Associations lost when converting from UML [message #621264 is a reply to message #474577] Mon, 14 July 2008 12:14 Go to previous message
Jochen Wuttke is currently offline Jochen Wuttke
Messages: 41
Registered: July 2009
Member
Felix Dorner wrote:
>
> Hi Rosi,
>
> from looking at the serialized uml model, I can see that the ends of
> your Association are owned by the Association. You can see this also in
> the tree model viewer, as the Association has two children that
> represent the two ends. This kind of Association model is not supported
> by the UML2Ecore transformation process.
>

Is there a place where the UML2Ecore transformation is documented?
Google didn't help me much in finding documentation for this, and as I
played with it for a bit I had similar problems with associations.

Jochen
Re: Associations lost when converting from UML [message #622762 is a reply to message #474686] Thu, 02 October 2008 09:29 Go to previous message
Kenn Hussey is currently offline Kenn Hussey
Messages: 1618
Registered: July 2009
Senior Member
Jochen,

Unfortunately, there isn't. We've long recognized the need for such an
article, but haven't been able to find the time to write one... Perhaps
someone in the community would be interested in making such a
contribution...

Kenn

"Jochen" <jochen.wuttke@gmx.de> wrote in message
news:g5fu1a$hh$1@build.eclipse.org...
> Felix Dorner wrote:
>>
>> Hi Rosi,
>>
>> from looking at the serialized uml model, I can see that the ends of your
>> Association are owned by the Association. You can see this also in the
>> tree model viewer, as the Association has two children that represent the
>> two ends. This kind of Association model is not supported by the
>> UML2Ecore transformation process.
>>
>
> Is there a place where the UML2Ecore transformation is documented? Google
> didn't help me much in finding documentation for this, and as I played
> with it for a bit I had similar problems with associations.
>
> Jochen
Previous Topic:Re: eclipse 3.5M2 versus uml2 tools?
Next Topic:eclipse 3.5M2 versus uml2 tools?
Goto Forum:
  


Current Time: Sat Jul 26 11:23:20 EDT 2014

Powered by FUDForum. Page generated in 0.08424 seconds