Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [CDO] setting a reference feature unique not allowed while advised in performance tip
[CDO] setting a reference feature unique not allowed while advised in performance tip [message #886581] Fri, 15 June 2012 08:13 Go to next message
Christophe Bouhier is currently offline Christophe BouhierFriend
Messages: 937
Registered: July 2009
Senior Member
Hi,

In de advises here:

http://wiki.eclipse.org/Tweaking_CDO_Performance

the advise to set the reference to unique is not allowed by EMF.
I get the error:

"A containment or bidirectional reference must be unique if it's upper bound is different from 1"

Is this really a valid advise, or am I missing something?
thank you, Christophe
Re: [CDO] setting a reference feature unique not allowed while advised in performance tip [message #887121 is a reply to message #886581] Sat, 16 June 2012 04:24 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6457
Registered: July 2009
Senior Member
Am 15.06.2012 10:13, schrieb Christophe Bouhier:
> Hi,
> In de advises here:
> http://wiki.eclipse.org/Tweaking_CDO_Performance
>
> the advise to set the reference to unique is not allowed by EMF. I get the error:
> "A containment or bidirectional reference must be unique if it's upper bound is different from 1"
You set it to unique and *then* EMF complains it must be unique? That seems contradictory to me.

>
> Is this really a valid advise, or am I missing something?
I think the wiki text should be updated to say explicitely "non-bidirectional cross references" because all other
reference types are either unique by definition or uniqueness is not applicable.

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper


Re: [CDO] setting a reference feature unique not allowed while advised in performance tip [message #888929 is a reply to message #887121] Mon, 18 June 2012 20:00 Go to previous message
Christophe Bouhier is currently offline Christophe BouhierFriend
Messages: 937
Registered: July 2009
Senior Member
Quote:
You set it to unique and *then* EMF complains it must be unique? That seems contradictory to me.

unique = false is what I meant. Well just followed the advise there.
Ok, thanks for the explanation.
Previous Topic:ContentHandler.UNSPECIFIED_CONTENT_TYPE vs null
Next Topic:[CDO] NPE on commit
Goto Forum:
  


Current Time: Thu Dec 05 14:22:12 GMT 2019

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

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

Back to the top