|How to get the same xmi:ids when re-creating a model ? [message #476010]
||Thu, 20 September 2007 07:05
| Florian Georg
Registered: July 2009
(cross-posting also to emf newsgroup)|
We currently face some issue during migration of our UML2 models
to a more recent EMF version.
There is a library model (UML <<modelLibrary>>), which elements (e.g.
are referenced in many of our existing UML models.
We mustn't loose the references to the elements from that library during
The point is, that the model library itself is being
created/updated by a batch job running on a server every n minutes
("synchronized from a DB").
Now we have to migrate to a more recent UML2 (and hence EMF version), so
we need to create a "new" model library, using a new batch job (which
uses the updated UML2/EMF jars for loading/saving).
Now the problem: As we have many UML models in the old format, that
reference the elemets from the library, we need to
re-create the library probably *with the same xmi:id* values - otherwise
the references will be broken after migrating the UML models.
(Migration of the "hosting" models and profiles is automatically done by
our UML tool)
So my question is: Is there a way to tell the new batch job to create
xmi:ids in the same way as the old version did?
If not, is there a clever way of doing some kind of one-shot migration?
(e.g. doing something clever in XMIResourceImpl)
Thanks for any hint !
Powered by FUDForum
. Page generated in 0.01665 seconds