Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Ecore Change
Ecore Change [message #1008404] Tue, 12 February 2013 10:52 Go to next message
Andrey Mising name is currently offline Andrey Mising nameFriend
Messages: 26
Registered: September 2011
Junior Member
Hi everyone,

I am really new to EMF and still thinking of using it or not.
My problem is: We have a metamodel and models (created from this metamodel) that are created by external software and are saved in different tables. It is not possible to track if someone does any change to a model and to understand what kind of change was done. Although it is possible to read each model with the API.
I though of the possibility to create an Ecore metamodel (that will describe the metamodel) and create models in Eclipse using the API and then to check in this models in SVN or save in ORACLE. Is this feasible?

If the metamodel changes (and as a result my Ecore metamodel changes) is it possible to adopt models created from the old Ecore metamodel?

Thank you,
Andrey
Re: Ecore Change [message #1008414 is a reply to message #1008404] Tue, 12 February 2013 12:03 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 26283
Registered: July 2009
Senior Member
Andrey,

Comments below.

On 12/02/2013 11:52 AM, Andrey Mising name wrote:
> Hi everyone,
>
> I am really new to EMF and still thinking of using it or not.
> My problem is: We have a metamodel and models (created from this
> metamodel) that are created by external software and are saved in
> different tables.
Both the model and the instances are stored in the tables, or only the
instances?
> It is not possible to track if someone does any change to a model and
> to understand what kind of change was done.
You can't track the changes in the table...
> Although it is possible to read each model with the API.
Which API?
> I though of the possibility to create an Ecore metamodel (that will
> describe the metamodel) and create models in Eclipse using the API and
> then to check in this models in SVN or save in ORACLE. Is this feasible?
It's always possible to save instances in some way. Teneo and CDO
support saving instances in data base.
>
> If the metamodel changes (and as a result my Ecore metamodel changes)
> is it possible to adopt models created from the old Ecore metamodel?
It depends on the types of changes. If you deleted all the classes and
data types and created new different ones then no.
>
> Thank you,
> Andrey
Re: Ecore Change [message #1008444 is a reply to message #1008414] Tue, 12 February 2013 14:13 Go to previous messageGo to next message
Andrey Mising name is currently offline Andrey Mising nameFriend
Messages: 26
Registered: September 2011
Junior Member
Hi,

The instances are saved in tables. It is not possible to track as the tables are overwritten.
JAVA API to extract the informations from these tables.
By changes i mean for example: References are different (was from obejct1 to object2 now it is first to object3 and then to object2), Parameters changes (was name, label now id, label, description.)

Thank you,
Andrey
Re: Ecore Change [message #1008474 is a reply to message #1008444] Tue, 12 February 2013 16:01 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 26283
Registered: July 2009
Senior Member
Andrey,

Comments below.

On 12/02/2013 3:13 PM, Andrey Mising name wrote:
> Hi,
>
> The instances are saved in tables. It is not possible to track as the
> tables are overwritten.
> JAVA API to extract the informations from these tables.
> By changes i mean for example: References are different (was from
> obejct1 to object2 now it is first to object3 and then to object2),
> Parameters changes (was name, label now id, label, description.)
Certainly with EMF you can track all changes made to objects that are
in-memory.
>
> Thank you,
> Andrey
Previous Topic:[CDO/Hibernate] ObjectNotFoundException No row with the given identifier exists
Next Topic:Calculating EClass URIs
Goto Forum:
  


Current Time: Fri Dec 19 08:57:39 GMT 2014

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

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