Re: [mdr-users] MOFIDs in MDR
Martin Matula <[email protected]>
| Newsgroups | gmane.comp.java.netbeans.modules.mdr.user |
|---|---|
| Message-ID | <[email protected]> |
Hi Santiago, Santiago Gil wrote: >Hello, > >I have a question about the MOFIDs management in MDR. Imagine the following >scenario… > >- I have 2 MDRs running in a separate JVM (Java Virtual Machine). >- First I load a metamodel into the first one ant then I create an >instance of it using the JMI interfaces. >- Then I export from that repository both the metamodel and the >instance I created. >- Now in the other repository I import the metamodel and the >instance I exported from the last repository. > > I guess you are talking about XMI import/export. Is that right? > >Question: Will the MOFIDs ( mdr.getByMOFID() method ) in the 2 repositories >be the same for each object in the repository? > > The ids will not be the same. >If not, how can I make them be the same? > > Unfortunatelly you can't. MOFID is a generated identifier which cannot be set from outside. Martin