# Many-to-many & ordered collection

**URL:** <https://forums.visual-paradigm.com/t/many-to-many-ordered-collection/10044>\
**Category:** General Questions/Discussions\
**Created:** [January 30, 2008, 6:22pm UTC](https://forums.visual-paradigm.com/t/many-to-many-ordered-collection/10044 "2008-01-30T18:22:35Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![maurizio316](https://avatars.discourse-cdn.com/v2/letter/m/aeb1de/32.png) [@maurizio316](https://forums.visual-paradigm.com/u/maurizio316)\
**Post date:** [January 30, 2008, 6:22pm UTC](https://forums.visual-paradigm.com/t/many-to-many-ordered-collection/10044/1 "2008-01-30T18:22:35Z")

</div>

Hi,  
if I try to specify an ordered many-to-many relation between to class I always receive the following error:  
[11:23:56] [Error] : Association(CLASS\_NAME =\> )'s foreign key column(s) cannot be included in primary key as it is “Array”. Please consider using “Set” or “Bag” instead.

Is there a way to set ordered many-to-many relations?

thx

---

<div class="post-metadata">

**Author:** ![maurizio316](https://avatars.discourse-cdn.com/v2/letter/m/aeb1de/32.png) [@maurizio316](https://forums.visual-paradigm.com/u/maurizio316)\
**Post date:** [February 19, 2008, 11:48pm UTC](https://forums.visual-paradigm.com/t/many-to-many-ordered-collection/10044/2 "2008-02-19T23:48:31Z")

</div>

no answer after one month?

---

<div class="post-metadata">

**Author:** ![Jick](https://avatars.discourse-cdn.com/v2/letter/j/ea666f/32.png) [@Jick](https://forums.visual-paradigm.com/u/Jick)\
**Post date:** [March 3, 2008, 6:19pm UTC](https://forums.visual-paradigm.com/t/many-to-many-ordered-collection/10044/3 "2008-03-03T18:19:36Z")

</div>

Hello maurizio316,

Sorry for the belated reply. Please set the association’s Collection Type as Set or Bag, the problem will gone.

Hope this helps. Let me know if there are any questions.

Best regards,  
Jick   
 ![](https://forums.visual-paradigm.com/uploads/default/original/2X/f/f7a73653d75f0adddf1c5608868d1ca290a798e2.png)  
set-and-bag-20080303a.png

---

<div class="post-metadata">

**Author:** ![maurizio316](https://avatars.discourse-cdn.com/v2/letter/m/aeb1de/32.png) [@maurizio316](https://forums.visual-paradigm.com/u/maurizio316)\
**Post date:** [March 3, 2008, 11:36pm UTC](https://forums.visual-paradigm.com/t/many-to-many-ordered-collection/10044/4 "2008-03-03T23:36:57Z")

</div>

Hi Jick,  
don’t worry…  
I already knew this, but I could need ordered collection…  
thanks

[quote=Jick]Hello maurizio316,

Sorry for the belated reply. Please set the association’s Collection Type as Set or Bag, the problem will gone.

Hope this helps. Let me know if there are any questions.

Best regards,  
Jick  
[/quote]

---

<div class="post-metadata">

**Author:** ![Jick](https://avatars.discourse-cdn.com/v2/letter/j/ea666f/32.png) [@Jick](https://forums.visual-paradigm.com/u/Jick)\
**Post date:** [March 6, 2008, 7:41pm UTC](https://forums.visual-paradigm.com/t/many-to-many-ordered-collection/10044/5 "2008-03-06T19:41:47Z")

</div>

Hi maurizio316,

Sorry for misunderstanding your problem, and thank you for bringing this problem into our attention. We have fixed application now. Please download the patch at:  
[http://files3.visual-paradigm.com/200803/Patch/sp1\_20080301j/VP\_Suite\_Windows\_3\_2\_sp1\_20080301j.exe](http://files3.visual-paradigm.com/200803/Patch/sp1_20080301j/VP_Suite_Windows_3_2_sp1_20080301j.exe)

To use the patch:

1. Exit any running instance of VP
2. Install by overwriting the current installation
3. Restart the product.

Note: This patch is made for VP Suite 3.2 SP1 (VP-UML 6.2 SP1). Please make sure you have a valid license for SDE version 6.2. Otherwise you won’t be able to start up the product after the installation.

If there is anything else that I can do to help please do not hesitate to ask.

Best regards,  
Jick

---

<div class="post-metadata">

**Author:** ![maurizio316](https://avatars.discourse-cdn.com/v2/letter/m/aeb1de/32.png) [@maurizio316](https://forums.visual-paradigm.com/u/maurizio316)\
**Post date:** [March 6, 2008, 8:00pm UTC](https://forums.visual-paradigm.com/t/many-to-many-ordered-collection/10044/6 "2008-03-06T20:00:42Z")

</div>

I always forget to tell you… can you send me Linux version please ?  
Thanks…

---

<div class="post-metadata">

**Author:** ![Jick](https://avatars.discourse-cdn.com/v2/letter/j/ea666f/32.png) [@Jick](https://forums.visual-paradigm.com/u/Jick)\
**Post date:** [March 7, 2008, 11:47am UTC](https://forums.visual-paradigm.com/t/many-to-many-ordered-collection/10044/7 "2008-03-07T11:47:30Z")

</div>

Oh…!! I always forget to send you the Linux version:-(

Sorry…

Please hold on a second

---

<div class="post-metadata">

**Author:** ![Jick](https://avatars.discourse-cdn.com/v2/letter/j/ea666f/32.png) [@Jick](https://forums.visual-paradigm.com/u/Jick)\
**Post date:** [March 7, 2008, 12:05pm UTC](https://forums.visual-paradigm.com/t/many-to-many-ordered-collection/10044/8 "2008-03-07T12:05:07Z")

</div>

Hi maurizio316,

Please try this one:  
[http://files3.visual-paradigm.com/200803/Patch/sp1\_20080301m/VP\_Suite\_Linux\_3\_2\_sp1\_20080301m.sh](http://files3.visual-paradigm.com/200803/Patch/sp1_20080301m/VP_Suite_Linux_3_2_sp1_20080301m.sh)

Best regards,  
Jick
