[mdr-users] ordering both ends of a many-to-many association

"John V. Sichi" <[email protected]> Sun, 13 Nov 2005 23:44:03 -0800
Newsgroups gmane.comp.java.netbeans.modules.mdr.user
Message-ID <[email protected]>
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.

Previously, I had only marked the Input end as ordered, and was only
building tree structures.  Then, I needed to start building graphs as
well, so I marked the Consumer end as ordered also.  Without making any
other changes, things started breaking.  The JMI interfaces were
generated correctly (with List instead of Collection), but the Input
collection order became non-deterministic; I would put in A,B and
sometimes get back B,A.  My guess is that marking both ends as ordered
somehow made both ends unordered instead.

I haven't put together a small test case for submission as a bug yet.
But first, can anyone tell me whether this is even supposed to work?  If
it's not, I guess I'll have to change my model to use an intersection
class instead of a many-to-many association.

Thanks,
JVS