Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Containament reference upper bound
Containament reference upper bound [message #509800] Mon, 25 January 2010 13:01 Go to next message
Milan Milanovich is currently offline Milan MilanovichFriend
Messages: 201
Registered: July 2009
Senior Member
Hi,

I have changed my reference to containment reference, and now when I open genmodel I get an error: "containament reference must have upper bound of 1 not -1". I want to keep my lower and upper bounds [0..*]. What is the problem here?

--
thanks, Milan
Re: Containament reference upper bound [message #509804 is a reply to message #509800] Mon, 25 January 2010 13:16 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 30687
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------070206010505040000000906
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit

Milan,

You're sure the error message isn't?

_UI_EReferenceSingleContainer_diagnostic = A container reference
must have upper bound of 1 not {0}

The opposite of a containment reference is a container reference and an
object is only allowed to have one container so that reference cannot
have upper bound other than 1.


Milan wrote:
> Hi,
>
> I have changed my reference to containment reference, and now when I
> open genmodel I get an error: "containament reference must have upper
> bound of 1 not -1". I want to keep my lower and upper bounds [0..*].
> What is the problem here?
>
> --
> thanks, Milan

--------------070206010505040000000906
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 7bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Milan,<br>
<br>
You're sure the error message isn't?<br>
<blockquote>_UI_EReferenceSingleContainer_diagnostic = A container
reference must have upper bound of 1 not {0}<br>
</blockquote>
The opposite of a containment reference is a container reference and an
object is only allowed to have one container so that reference cannot
have upper bound other than 1.<br>
<br>
<br>
Milan wrote:
<blockquote cite="mid:hjk4n6$mc7$1@build.eclipse.org" type="cite">Hi,
<br>
<br>
I have changed my reference to containment reference, and now when I
open genmodel I get an error: "containament reference must have upper
bound of 1 not -1". I want to keep my lower and upper bounds [0..*].
What is the problem here?
<br>
<br>
--
<br>
thanks, Milan
<br>
</blockquote>
</body>
</html>

--------------070206010505040000000906--
Re: Containament reference upper bound [message #509838 is a reply to message #509804] Mon, 25 January 2010 15:10 Go to previous message
Milan Milanovich is currently offline Milan MilanovichFriend
Messages: 201
Registered: July 2009
Senior Member
Dear Mr. Merks,

yes, you are right. Thanks.

--
Regards, Milan
Previous Topic:[CDO Teneo] Problem mapping an EJavaObject using a CDO Server with a Hibernate Datastore
Next Topic:[CDO Teneo] Does CDOENumStringType.nullSafeGet require identical name and literal for EEnum?
Goto Forum:
  


Current Time: Mon Dec 09 23:52:37 GMT 2019

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

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

Back to the top