Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Using model generated with the editor
Using model generated with the editor [message #668427] Thu, 05 May 2011 16:05 Go to next message
David  is currently offline David Friend
Messages: 2
Registered: May 2011
Junior Member
Hi,

In Eclipse Helios, I have realized an EMF model from which I realized my model code, edit code and editor code.

This model works with derby in my project.

To initialize my database, I used the editor and saved my resulting XML file.

Now, I would like to initialize my derby database with this file. And here is my problem, with the eclipse database tools, I can see my database, but not where to inject my XML file...

How can I do this ? Or maybe someone can point me to a tutorial explaining this.

Thanks.
Re: Using model generated with the editor [message #668449 is a reply to message #668427] Thu, 05 May 2011 16:58 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33142
Registered: July 2009
Senior Member
David,

Sorry, I know nothing about Derby... Have you looked at Teneo? It
provides support for database-based persistence...


David wrote:
> Hi,
>
> In Eclipse Helios, I have realized an EMF model from which I realized
> my model code, edit code and editor code.
>
> This model works with derby in my project.
>
> To initialize my database, I used the editor and saved my resulting
> XML file.
>
> Now, I would like to initialize my derby database with this file. And
> here is my problem, with the eclipse database tools, I can see my
> database, but not where to inject my XML file...
>
> How can I do this ? Or maybe someone can point me to a tutorial
> explaining this.
>
> Thanks.


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Using model generated with the editor [message #668476 is a reply to message #668449] Thu, 05 May 2011 19:47 Go to previous messageGo to next message
David  is currently offline David Friend
Messages: 2
Registered: May 2011
Junior Member
Hi Ed,

In fact, I use emf, Teneo and in background hibernate with the database derby.

I don't think the database to be important.

My difficulty is that I generated a file (xmi file if I understood...) with the emf editor I made. And I would like to initialize the database with it.

Maybe you'll say what I want is very simple, but I didn't find how to do this.

I'm new with emf, teneo, hibernate,... I already leaned many things but I didn't find about that.

I will dig into teneo, thanks !

David.
Re: Using model generated with the editor [message #668533 is a reply to message #668476] Fri, 06 May 2011 06:53 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33142
Registered: July 2009
Senior Member
David,

You'd need to move the objects from the XMIResourceImpl you used to load
the XMI and put them the resource implementation Teneo uses to persist
to a database.


David wrote:
> Hi Ed,
>
> In fact, I use emf, Teneo and in background hibernate with the
> database derby.
>
> I don't think the database to be important.
>
> My difficulty is that I generated a file (xmi file if I understood...)
> with the emf editor I made. And I would like to initialize the
> database with it.
>
> Maybe you'll say what I want is very simple, but I didn't find how to
> do this.
>
> I'm new with emf, teneo, hibernate,... I already leaned many things
> but I didn't find about that.
>
> I will dig into teneo, thanks !
>
> David.


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Constraints on a dynamic model?
Next Topic:Declaring customized local ItemProviders for foreign classes
Goto Forum:
  


Current Time: Fri Apr 26 09:50:27 GMT 2024

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

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

Back to the top