Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » How to get the same xmi:ids when re-creating a model ?
How to get the same xmi:ids when re-creating a model ? [message #476010] Thu, 20 September 2007 07:05
Florian Georg is currently offline Florian GeorgFriend
Messages: 27
Registered: July 2009
Junior Member
(cross-posting also to emf newsgroup)

Hi,

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.
UML classes)
are referenced in many of our existing UML models.
We mustn't loose the references to the elements from that library during
migration.
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 !
regards, Florian
Previous Topic:Why are some features not changeable ?
Next Topic:How to get the same xmi:ids when re-creating a model ?
Goto Forum:
  


Current Time: Wed Dec 13 19:17:12 GMT 2017

Powered by FUDForum. Page generated in 0.01665 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software