Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [EMF] ID-IDREF resolution
[EMF] ID-IDREF resolution [message #661349] Thu, 24 March 2011 10:46 Go to next message
Nirmal SasidharanFriend
Messages: 120
Registered: July 2009
Location: Germany
Senior Member
Hello,

I have a EMF model which needs to be persisted as XML. The XML structure is slightly different from the model and it is tough to handle this using ExtendedMetaData annotations (especially due to this open point in EMF https://bugs.eclipse.org/bugs/show_bug.cgi?id=201662). Right now I have generated a Ecore model from XSD and am doing a model to model transformation to my final Ecore model. I am not sure how the ID-IDREF mechanism would work in this case. Should I resolve the references in my XSD ecore model manually to set the object references correctly in my output model. Is this mapping somewhere indexed in the input model/resource by EMF?

Thanks and regards,
Nirmal

[Updated on: Thu, 24 March 2011 13:21]

Report message to a moderator

Re: [EMF] ID-IDREF resolution [message #661391 is a reply to message #661349] Thu, 24 March 2011 13:52 Go to previous messageGo to next message
Nirmal SasidharanFriend
Messages: 120
Registered: July 2009
Location: Germany
Senior Member
Hi,

I stumbled across a post to add ecore:reference within XSD. Would this be the right direction? This would mean I change a "read-only" XSD.

Regards,
Nirmal
Re: [EMF] ID-IDREF resolution [message #661435 is a reply to message #661391] Thu, 24 March 2011 16:34 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 30551
Registered: July 2009
Senior Member
Nirmal,

Yes, you need to indicate what type of object is being referenced.
You'll be able to edit it via the properties view like any
non-containment references and it will be serialized using the ID as
expected.


Nirmal Sasidharan wrote:
> Hi,
>
> I stumbled across a post to add ecore:reference within XSD. Would this
> be the right direction? This would mean I change a "read-only" XSD.
> Regards,
> Nirmal
Previous Topic:Modeling problem
Next Topic:Omit type string in item provider getText
Goto Forum:
  


Current Time: Sun Oct 20 13:36:30 GMT 2019

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

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

Back to the top