Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [EMF Compare] diff model to create mapping java?
[EMF Compare] diff model to create mapping java? [message #118923] Thu, 17 April 2008 18:50 Go to next message
Jason Henriksen is currently offline Jason HenriksenFriend
Messages: 231
Registered: July 2009
Senior Member
Hi guys,

I've seen how I can use Compare against two versions of an ecore model
and get a diff list. Is there any project or effort that can take that
diff list and generate code to 'upgrade' an instance xml of ecoreV1 to
ecoreV2? I'd expect I'd have to fill in method definitions, but some
kind of starting template would be great.

Just checking before I start building something that's already been
thought of. My end goal is to let the XML being sent to version 1 of a
web service be automatically upgraded to match what's needed by version
2 of a web service.

Thanks,

Jason Henriksen
Re: [EMF Compare] diff model to create mapping java? [message #118962 is a reply to message #118923] Fri, 18 April 2008 05:14 Go to previous message
Matt Seashore is currently offline Matt SeashoreFriend
Messages: 58
Registered: July 2009
Member
It doesn't involve EMFCompare, but you might want to look into EMF's
"ecore2ecore" mapping. There's not a lot of documentation about it, but
the "data migration" scenario on the EMF Recipes page may be of help:
http://wiki.eclipse.org/EMF/Recipes#Recipe:_Data_Migration

Thanks,

Matt

jason henriksen wrote:
> Hi guys,
>
> I've seen how I can use Compare against two versions of an ecore model
> and get a diff list. Is there any project or effort that can take that
> diff list and generate code to 'upgrade' an instance xml of ecoreV1 to
> ecoreV2? I'd expect I'd have to fill in method definitions, but some
> kind of starting template would be great.
>
> Just checking before I start building something that's already been
> thought of. My end goal is to let the XML being sent to version 1 of a
> web service be automatically upgraded to match what's needed by version
> 2 of a web service.
>
> Thanks,
>
> Jason Henriksen
Re: [EMF Compare] diff model to create mapping java? [message #617831 is a reply to message #118923] Fri, 18 April 2008 05:14 Go to previous message
Matt Seashore is currently offline Matt SeashoreFriend
Messages: 58
Registered: July 2009
Member
It doesn't involve EMFCompare, but you might want to look into EMF's
"ecore2ecore" mapping. There's not a lot of documentation about it, but
the "data migration" scenario on the EMF Recipes page may be of help:
http://wiki.eclipse.org/EMF/Recipes#Recipe:_Data_Migration

Thanks,

Matt

jason henriksen wrote:
> Hi guys,
>
> I've seen how I can use Compare against two versions of an ecore model
> and get a diff list. Is there any project or effort that can take that
> diff list and generate code to 'upgrade' an instance xml of ecoreV1 to
> ecoreV2? I'd expect I'd have to fill in method definitions, but some
> kind of starting template would be great.
>
> Just checking before I start building something that's already been
> thought of. My end goal is to let the XML being sent to version 1 of a
> web service be automatically upgraded to match what's needed by version
> 2 of a web service.
>
> Thanks,
>
> Jason Henriksen
Previous Topic:[EMF Compare] diff model to create mapping java?
Next Topic:[Compare] DiffEngine: Modifying when Conflicting EReferences occur
Goto Forum:
  


Current Time: Thu Mar 28 22:33:00 GMT 2024

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

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

Back to the top