Re: [mdr-users] RE : [mdr-users] Reordering references

Martin Matula <[email protected]>
Newsgroups gmane.comp.java.netbeans.modules.mdr.user
Message-ID <[email protected]>
What exception did you get? To change order of elements you should be 
able to just remove a given element from the collection and add it to a 
different position.
Regards,
Martin

Olivier RICHAUD wrote:

>OK, I'll check my part
>
>However, i tried to shuffle a collection representing an ordered end of
>an association and I got an exception.
>
>How can I reorder an association?
>
>Olivier.
>
>-----Message d'origine-----
>De : Martin Matula [mailto:[email protected]] 
>Envoyé : mardi 14 juin 2005 16:17
>À : [email protected]
>Objet : Re: [mdr-users] Reordering references
>
>
>Hi Olivier,
>
>Olivier RICHAUD wrote:
>
>  
>
>>I'm trying to reorder an ordered association end. I mean, I want to
>>move, for example, a referenced object at the beginning of the 
>>relation. This works fine, unless I define a composite association. In
>>    
>>
>
>  
>
>>that case, since I'm forced to first remove the object I want to move 
>>from the association, MDR considers that object as deleted.
>>    
>>
>
>This should not be the case - it is perfectly OK to remove an object 
>from a composite association. Unless you call refDelete() on that object
>
>or on its composite, the object should not be deleted. So, it looks like
>
>there is some bug in your code, or maybe in MDR. I doubt the bug is in 
>MDR since we use removing and adding stuff from/to composite 
>relationships all the time and it always worked well.
>Regards,
>Martin
>
>
>  
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.