Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » using UUID for/in HREF
using UUID for/in HREF [message #426055] Mon, 15 December 2008 13:10 Go to next message
Soeren Kemmann is currently offline Soeren KemmannFriend
Messages: 15
Registered: July 2009
Junior Member
Hello everyone,

I have a semantic model which is split into several resources.
The problem is that the uri references are problematic with lazy loading
resources and keeping the references consistent.
I have now changed the (de-)serialization to use UUIDs (by using the
GMFResourceFactory).
Now I have a unique identifier for each Object in a resource, but the
references are still stored with "path_to_resource#//Containment.n". Is it
possible to use the resource path and the uuid instead?
I.e., I would like to have something like "path_to_resource#UUID" for
resolving the object reference?

Thanks in advance!

Soeren
Re: using UUID for/in HREF [message #426056 is a reply to message #426055] Mon, 15 December 2008 13:14 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 30896
Registered: July 2009
Senior Member
Soeren,

Comments below.


Soeren Kemmann wrote:
> Hello everyone,
>
> I have a semantic model which is split into several resources.
> The problem is that the uri references are problematic with lazy loading
> resources and keeping the references consistent.
> I have now changed the (de-)serialization to use UUIDs (by using the
> GMFResourceFactory).
> Now I have a unique identifier for each Object in a resource, but the
> references are still stored with "path_to_resource#//Containment.n". Is it
> possible to use the resource path and the uuid instead?
>
That's normally what ought to happen.
> I.e., I would like to have something like "path_to_resource#UUID" for
> resolving the object reference?
>
If you load the referencing resource, ensure that all proxies are
resolved, e.g., EcoreUtil.resolveAll or invoking Validate... in the
editor, and then save, it should use the new style references. Note
that you could also defines eKeys for your containment references so
that you'd get references of the form @feature[key='value']. UUIDs are
not cheap. They have an overhead of roughly 175 bytes per object...
> Thanks in advance!
>
> Soeren
>
>
>
Previous Topic:Faster Loading EMF Models from XML
Next Topic:[Teneo]: Two issues with version 1.0.1
Goto Forum:
  


Current Time: Fri Feb 21 19:36:59 GMT 2020

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

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

Back to the top