|
Re: Using model generated with the editor [message #668449 is a reply to message #668427] |
Thu, 05 May 2011 16:58 |
Ed Merks 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 #668533 is a reply to message #668476] |
Fri, 06 May 2011 06:53 |
Ed Merks 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/
|
|
|
Powered by
FUDForum. Page generated in 0.03731 seconds