Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » Problem with navigable owned end
Problem with navigable owned end [message #473640] Mon, 02 July 2007 12:13 Go to next message
exquisitus is currently offline exquisitusFriend
Messages: 211
Registered: July 2009
Senior Member
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 #473761 is a reply to message #473640] Thu, 05 July 2007 12:43 Go to previous messageGo to next message
Kenn Hussey is currently offline Kenn HusseyFriend
Messages: 1620
Registered: July 2009
Senior Member
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 #473775 is a reply to message #473761] Fri, 06 July 2007 09:20 Go to previous message
exquisitus is currently offline exquisitusFriend
Messages: 211
Registered: July 2009
Senior Member
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 12:43 Go to previous message
Kenn Hussey is currently offline Kenn HusseyFriend
Messages: 1620
Registered: July 2009
Senior Member
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 09:20 Go to previous message
exquisitus is currently offline exquisitusFriend
Messages: 211
Registered: July 2009
Senior Member
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
>>
>
>
Previous Topic:EMF.edit commands
Next Topic:EMF.edit commands
Goto Forum:
  


Current Time: Wed Apr 24 22:57:45 GMT 2024

Powered by FUDForum. Page generated in 0.03531 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top