Problem with navigable owned end [message #473640] |
Mon, 02 July 2007 08:13  |
Eclipse User |
|
|
|
Hi all,
I'm working at an UML model from which I want to generate by genmodel the
relative code. I have an association that owns a navigable end, that
corresponds to an attribute of the class at the opposite side of the
association. The problem is that the attribute ceases to exist whenever it
becomes an association navigable end. This leads to a genmodel completely
unaware of that attribute, situation I would like to avoid. How can I get
both attribute in the class and navigable end in the association?
Thanks in advance,
exquisitus
|
|
|
|
Re: Problem with navigable owned end [message #473775 is a reply to message #473761] |
Fri, 06 July 2007 05:20  |
Eclipse User |
|
|
|
Thanks, Kenn
You confirmed what I was supposing since my post ...
"Kenn Hussey" <khussey@ca.ibm.com> wrote in message
news:f6ip1p$jbv$1@build.eclipse.org...
> exquisitus,
>
> Only properties owned by classes will result in properties since the
> concept of an association does not exist in Ecore (EMOF). Properties owned
> by classes are implicitly navigable, so if you're looking for a navigable
> association end that's owned by a class, there's no need for it to be
> owned by the association (nor for it to be listed as one of the
> association's navigable owned ends)...
>
> Kenn
>
> "exquisitus" <MIMINNO@it.ibm.com> wrote in message
> news:f6aq4r$553$1@build.eclipse.org...
>> Hi all,
>> I'm working at an UML model from which I want to generate by genmodel the
>> relative code. I have an association that owns a navigable end, that
>> corresponds to an attribute of the class at the opposite side of the
>> association. The problem is that the attribute ceases to exist whenever
>> it becomes an association navigable end. This leads to a genmodel
>> completely unaware of that attribute, situation I would like to avoid.
>> How can I get both attribute in the class and navigable end in the
>> association?
>>
>> Thanks in advance,
>> exquisitus
>>
>
>
|
|
|
Re: Problem with navigable owned end [message #622813 is a reply to message #473640] |
Thu, 05 July 2007 08:43  |
Eclipse User |
|
|
|
exquisitus,
Only properties owned by classes will result in properties since the concept
of an association does not exist in Ecore (EMOF). Properties owned by
classes are implicitly navigable, so if you're looking for a navigable
association end that's owned by a class, there's no need for it to be owned
by the association (nor for it to be listed as one of the association's
navigable owned ends)...
Kenn
"exquisitus" <MIMINNO@it.ibm.com> wrote in message
news:f6aq4r$553$1@build.eclipse.org...
> Hi all,
> I'm working at an UML model from which I want to generate by genmodel the
> relative code. I have an association that owns a navigable end, that
> corresponds to an attribute of the class at the opposite side of the
> association. The problem is that the attribute ceases to exist whenever it
> becomes an association navigable end. This leads to a genmodel completely
> unaware of that attribute, situation I would like to avoid. How can I get
> both attribute in the class and navigable end in the association?
>
> Thanks in advance,
> exquisitus
>
|
|
|
Re: Problem with navigable owned end [message #622849 is a reply to message #473761] |
Fri, 06 July 2007 05:20  |
Eclipse User |
|
|
|
Thanks, Kenn
You confirmed what I was supposing since my post ...
"Kenn Hussey" <khussey@ca.ibm.com> wrote in message
news:f6ip1p$jbv$1@build.eclipse.org...
> exquisitus,
>
> Only properties owned by classes will result in properties since the
> concept of an association does not exist in Ecore (EMOF). Properties owned
> by classes are implicitly navigable, so if you're looking for a navigable
> association end that's owned by a class, there's no need for it to be
> owned by the association (nor for it to be listed as one of the
> association's navigable owned ends)...
>
> Kenn
>
> "exquisitus" <MIMINNO@it.ibm.com> wrote in message
> news:f6aq4r$553$1@build.eclipse.org...
>> Hi all,
>> I'm working at an UML model from which I want to generate by genmodel the
>> relative code. I have an association that owns a navigable end, that
>> corresponds to an attribute of the class at the opposite side of the
>> association. The problem is that the attribute ceases to exist whenever
>> it becomes an association navigable end. This leads to a genmodel
>> completely unaware of that attribute, situation I would like to avoid.
>> How can I get both attribute in the class and navigable end in the
>> association?
>>
>> Thanks in advance,
>> exquisitus
>>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.04675 seconds