Skip to main content



      Home
Home » Modeling » EMF » [EMF] ID-IDREF resolution
[EMF] ID-IDREF resolution [message #661349] Thu, 24 March 2011 06:46 Go to next message
Eclipse UserFriend
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 09:21] by Moderator

Re: [EMF] ID-IDREF resolution [message #661391 is a reply to message #661349] Thu, 24 March 2011 09:52 Go to previous messageGo to next message
Eclipse UserFriend
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 12:34 Go to previous message
Eclipse UserFriend
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: Wed Jul 23 14:40:46 EDT 2025

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

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

Back to the top