This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 68696 - MOF validation should prevent orderings on both ends of association
Summary: MOF validation should prevent orderings on both ends of association
Status: RESOLVED WONTFIX
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: David Strupl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-14 22:06 UTC by _ jsichi
Modified: 2010-09-23 09:14 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description _ jsichi 2005-11-14 22:06:26 UTC
The discussion below from the mdr-users mailing list describes the issue.  Since
MOF does not allow this construct, it would be nice if some part of MDR would
run validation and reject models violating this MOF rule.

Note:  solution to the MOF limitation is to use an intersection class instead of
a many-to-many association.

----

Date: Mon, 14 Nov 2005 19:02:17 +0100
From: Martin Matula <Martin.Matula@Sun.COM>
Content-type: text/plain; charset=ISO-8859-1; format=flowed
Subject: [mdr-users] ordering both ends of a many-to-many association


Hi John,

John V. Sichi wrote:
> Is this supposed to work?  I have a many-to-many association named
> ExecStreamDataFlow.  The two ends are called Input and Consumer, and
> both reference the same class ExecStream.  This association is used to
> represent the edges of a directed graph of dataflow stream vertices.

No, setting both ends as ordered is illegal in MOF according to MOF 
constraints.
Regards,
Martin
Comment 1 David Strupl 2010-09-23 09:14:36 UTC
I am closing all reports in category Java/Unsupported as wontfix. These should
be dead issues --- if the reported cases are against some live part of the
NetBeans IDE please reopen and we can discuss to which category they belong.