Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [XCore] symetric association(the new version of xcore does no longer allow for associations like refers Person[] friends opposite friends)
[XCore] symetric association [message #1396540] Tue, 08 July 2014 12:55 Go to next message
Albert  Zündorf is currently offline Albert ZündorfFriend
Messages: 4
Registered: July 2013
Junior Member
I have just donwloaded lua and xcore (anew)

Now the following association:

package org.sdmlib.examples

class Person
{
String name

refers Person[] friends opposite friends

}

creates an error: The opposite may not be its own opposite

This was OK with earlier versions of xcore and I really want it in my model.

Is there some option enabling such assocs or some other trick?

Albert
Re: [XCore] symetric association [message #1396592 is a reply to message #1396540] Tue, 08 July 2014 14:23 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33136
Registered: July 2009
Senior Member
Albert,

You'll see in the newsgroup history that this topic has come up a few
times in the past. Ecore simply doesn't allow this and Xcore maps to
Ecore so it can't allow that either.


On 08/07/2014 2:55 PM, Albert Zündorf wrote:
> I have just donwloaded lua and xcore (anew)
> Now the following association:
> package org.sdmlib.examples
>
> class Person
> {
> String name
>
> refers Person[] friends opposite friends
>
> }
>
> creates an error: The opposite may not be its own opposite
>
> This was OK with earlier versions of xcore and I really want it in my
> model.
> Is there some option enabling such assocs or some other trick?
>
> Albert


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: [XCore] symetric association [message #1396660 is a reply to message #1396592] Tue, 08 July 2014 16:08 Go to previous messageGo to next message
Albert  Zündorf is currently offline Albert ZündorfFriend
Messages: 4
Registered: July 2013
Junior Member
Dear Ed,

thanks for your reply.

I am sorry, that I did not find the previous discussions.

'Its forbidden in Ecore' is a perfect reason.

Albeit, it was working before. And although it is forbidden, you could do it in EMF at least recently. Personally, I am ready to do things forbidden by Ecore.

Meanwhile, I will use this as an argument that SDMLib (sdmlib.org) is much better then EMF and Xcore Smile

Greetings

Albert
Re: [XCore] symetric association [message #1396670 is a reply to message #1396660] Tue, 08 July 2014 16:23 Go to previous message
Albert  Zündorf is currently offline Albert ZündorfFriend
Messages: 4
Registered: July 2013
Junior Member
Just as add on:

I have looked up the discussion at https://www.eclipse.org/forums/index.php/mv/msg/457531/1015089/#msg_1015089

I see that there also some technical reasons.
Still, these issues could be solved and I hereby add myself to the list of voters for such a feature.
And, in sdmlib.org this works like a charm Smile

Albert
Previous Topic:[EMF / CDO] Unexpected "Class not found exception"
Next Topic:Operation Id or index reference
Goto Forum:
  


Current Time: Thu Apr 18 17:31:48 GMT 2024

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

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

Back to the top