Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » ATL » injection of an XMI into a database
injection of an XMI into a database [message #1058569] Tue, 14 May 2013 13:34 Go to next message
samar sousou is currently offline samar sousouFriend
Messages: 63
Registered: March 2013
Member
Hi every body,
I need to know how can i do the injection of the XMI into a database!

thank you.
Re: injection of an XMI into a database [message #1058617 is a reply to message #1058569] Tue, 14 May 2013 14:47 Go to previous messageGo to next message
Hugo Bruneliere is currently offline Hugo BruneliereFriend
Messages: 674
Registered: July 2009
Senior Member
Hello,

This is a general EMF feature, you should probably take a look to the corresponding CDO project.

Hugo


--------------------------------------------------------
Hugo Bruneliere, PhD
NaoMod team (IMT Atlantique & LS2N-CNRS)
Nantes - France
--------------------------------------------------------
Re: injection of an XMI into a database [message #1058657 is a reply to message #1058617] Tue, 14 May 2013 15:40 Go to previous messageGo to next message
samar sousou is currently offline samar sousouFriend
Messages: 63
Registered: March 2013
Member
Thank you Mr Hugo,
but i don't understand you.
I have an xmi as a result of the transformation and i want to inject it into a MySQL.
That's it.

can you explain me how to do.


thank you.

Samar.
Re: injection of an XMI into a database [message #1058668 is a reply to message #1058657] Tue, 14 May 2013 16:16 Go to previous messageGo to next message
Hugo Bruneliere is currently offline Hugo BruneliereFriend
Messages: 674
Registered: July 2009
Senior Member
The way you serialize/save your models is not directly related to ATL.
You should take a look to the CDO project that provides the relevant features to load/save EMF models from/into databases.


--------------------------------------------------------
Hugo Bruneliere, PhD
NaoMod team (IMT Atlantique & LS2N-CNRS)
Nantes - France
--------------------------------------------------------
Re: injection of an XMI into a database [message #1058825 is a reply to message #1058668] Wed, 15 May 2013 09:41 Go to previous messageGo to next message
samar sousou is currently offline samar sousouFriend
Messages: 63
Registered: March 2013
Member
hi,
I want to know if i can do the transformation from my M2 to sql!!
if there is a solution, help me please.

thank you,

Samar.
Re: injection of an XMI into a database [message #1058857 is a reply to message #1058825] Wed, 15 May 2013 12:29 Go to previous messageGo to next message
Hugo Bruneliere is currently offline Hugo BruneliereFriend
Messages: 674
Registered: July 2009
Senior Member
Hello,

If you want to produce an SQL file then this is another story.
Here are the consecutive steps to be performed:

  • Implement a Relational/SQL metamodel in Ecore;
  • Implement a YourMetamodel-to-Relational transformation in ATL (cf. the Class-to-Relational transformation example as an illustration);
  • Implement a Relational/SQL code generator using a Model-To-Text technology such as Acceleo for instance.

I hope this helps.

Hugo


--------------------------------------------------------
Hugo Bruneliere, PhD
NaoMod team (IMT Atlantique & LS2N-CNRS)
Nantes - France
--------------------------------------------------------
Re: injection of an XMI into a database [message #1058862 is a reply to message #1058857] Wed, 15 May 2013 12:59 Go to previous messageGo to next message
samar sousou is currently offline samar sousouFriend
Messages: 63
Registered: March 2013
Member
Thank you Mr Hugo,
This is my purpose. and after i want to inject it into a DataBase.
Can you help me with a good tuto for the acceleo.

thank you.

Samar

[Updated on: Wed, 15 May 2013 13:35]

Report message to a moderator

Re: injection of an XMI into a database [message #1058905 is a reply to message #1058862] Wed, 15 May 2013 16:32 Go to previous messageGo to next message
Hugo Bruneliere is currently offline Hugo BruneliereFriend
Messages: 674
Registered: July 2009
Senior Member
All you need is available from the Acceleo website.

--------------------------------------------------------
Hugo Bruneliere, PhD
NaoMod team (IMT Atlantique & LS2N-CNRS)
Nantes - France
--------------------------------------------------------
Re: injection of an XMI into a database [message #1059197 is a reply to message #1058905] Fri, 17 May 2013 09:02 Go to previous messageGo to next message
samar sousou is currently offline samar sousouFriend
Messages: 63
Registered: March 2013
Member
Hi Mr Hugo,
I did'nt understand how can i extract the data(instnace) from my model to the text.
because when i run I have no option to enter my model.


help me please,
samar.
Re: injection of an XMI into a database [message #1059204 is a reply to message #1059197] Fri, 17 May 2013 09:41 Go to previous message
Hugo Bruneliere is currently offline Hugo BruneliereFriend
Messages: 674
Registered: July 2009
Senior Member
This is a Model-to-Text issue so you should better ask your question onto the dedicated Eclipse forum (tagging your post with [Acceleo]).

--------------------------------------------------------
Hugo Bruneliere, PhD
NaoMod team (IMT Atlantique & LS2N-CNRS)
Nantes - France
--------------------------------------------------------
Previous Topic:How to use custom resource factory in the ATL Debug Launch Configuration
Next Topic:ATL
Goto Forum:
  


Current Time: Fri Apr 19 11:32:38 GMT 2024

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

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

Back to the top