Re: [mdr-users] RE : [mdr-users] Clustering packages
Martin Matula <[email protected]> Wed, 11 Jan 2006 14:48:18 +0100
| Newsgroups | gmane.comp.java.netbeans.modules.mdr.user |
|---|---|
| Message-ID | <[email protected]> |
Aren't the two existing extents instances of exactly the same package? (i.e. do they both have the same metaobject?) If so, then that's the problem, because MDR cannot guess which of these two instances of the same package should be used for which clustering relationship. Martin Olivier RICHAUD wrote: > No no, there are all independent !!!! > > > > -----Message d'origine----- > De : Martin Matula [mailto:[email protected]] > Envoyé : mercredi 11 janvier 2006 11:29 > à : [email protected] > Objet : Re: [mdr-users] Clustering packages > > > Hi Olivier, > doesn't one of the passed packages cluster the other one? Martin > > Olivier RICHAUD wrote: > >>Hi all and happy new year, >> >>I'm running into troubles with clustered packages during the creation >>of a new extent.This worked fine with one clustered package but as >>soon as I try to pass two clustered packages, it crashes. As far I can > > >>see, the passed packages are strictly different from my point of view. > > >>They are loaded from 2 different XMI / MOF files, and contain >>different package names. However I get a creation exception saying >>"The provided list of existing package instances contains >>duplicities". >> >>I traced this down to the NBMDRepositoryImpl.collectPackageInstances >>method I don't understand the way the check for duplicities is >>performed. To check lwhether a package is already knwon, it relies on >>a call to : >> >>(BaseObjectHandler)pkg.refMetaObject())._getDelegate().getMofId() >>which always returns the same, although packages are different. >> >>Thanks for your help. >> >>Regards. >> >>Olivier. >>