Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » EMF CRUD Generator for a database
EMF CRUD Generator for a database [message #649457] Wed, 19 January 2011 10:24 Go to next message
Vincenzo Caselli is currently offline Vincenzo CaselliFriend
Messages: 51
Registered: July 2009
Member
Hi all,
do you know/use/point out an Eclipse framework that, starting from an EMF ecore, can generate an out-of-the-box minimal CRUD (Create-Read-Update-Delete) RCP application for a database system with the following features?

- generated Views or Editor for the UI (not with Propery pages)
- EMF databinding
- Database persistence with Teneo or CDO
- EMF ResourceSet, EditingDomain and dirty management

Thank you very much

Vincenzo Caselli
RCP Vision

Re: EMF CRUD Generator for a database [message #649461 is a reply to message #649457] Wed, 19 January 2011 10:44 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
.... because CDO as well as Teneo know how to deal with EMF-Resources you
can use the generated editors from EMF-Edit with both of them.

Tom

Am 19.01.11 11:24, schrieb Vincenzo Caselli:
> Hi all,
> do you know/use/point out an Eclipse framework that, starting from an
> EMF ecore, can generate an out-of-the-box minimal CRUD
> (Create-Read-Update-Delete) RCP application for a database system with
> the following features?
>
> - generated Views or Editor for the UI (not with Propery pages)
> - EMF databinding
> - Database persistence with Teneo or CDO
> - EMF ResourceSet, EditingDomain and dirty management
>
> Thank you very much
>
> Vincenzo Caselli
> RCP Vision
>
>
Re: EMF CRUD Generator for a database [message #649471 is a reply to message #649461] Wed, 19 January 2011 11:51 Go to previous messageGo to next message
Vincenzo Caselli is currently offline Vincenzo CaselliFriend
Messages: 51
Registered: July 2009
Member
Hi Tom,
thank you for the response, but the EMF-Edit generated plug-in works with the default EMF Resource implementation, that is XMI.
What are the steps for modify the generated plug-ins in order to use a different EMF Resource implementation like the Teneo o CDO one?

Thank you
Cheers

Vincenzo
Re: EMF CRUD Generator for a database [message #649472 is a reply to message #649471] Wed, 19 January 2011 11:53 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
There where the generated source loads the XMI you need nothing more
than replace it with: http://wiki.eclipse.org/Teneo/Hibernate/Tutorial

Tom

Am 19.01.11 12:51, schrieb Vincenzo Caselli:
> Hi Tom,
> thank you for the response, but the EMF-Edit generated plug-in works
> with the default EMF Resource implementation, that is XMI.
> What are the steps for modify the generated plug-ins in order to use a
> different EMF Resource implementation like the Teneo o CDO one?
>
> Thank you
> Cheers
>
> Vincenzo
Re: EMF CRUD Generator for a database [message #649480 is a reply to message #649471] Wed, 19 January 2011 12:12 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
Am 19.01.2011 12:51, schrieb Vincenzo Caselli:
> Hi Tom,
> thank you for the response, but the EMF-Edit generated plug-in works with the default EMF Resource implementation, that is XMI.
> What are the steps for modify the generated plug-ins in order to use a different EMF Resource implementation like the Teneo o CDO one?
Martin Flügge is currently working on CDO Dawn support for EMF tree structure editors:

323828: [Dawn] Provide collaborative EMF editors on CDO
https://bugs.eclipse.org/bugs/show_bug.cgi?id=323828

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper


Re: EMF CRUD Generator for a database [message #649692 is a reply to message #649472] Thu, 20 January 2011 10:49 Go to previous messageGo to next message
Vincenzo Caselli is currently offline Vincenzo CaselliFriend
Messages: 51
Registered: July 2009
Member
Hi Tom,
thanks! Indeed it took a while to find the right place to change things,
but in the end we were able to use the generated EMF-Editor plugin with Teneo for managing the database!
And that's great: a CRUD for the EMF model at zero-cost!

Now we would like to move a step forward.
In fact, the generated multipage editor allows editing with the use of the Properties, while we would like to have a form-like UI, that is, a View or Editor with labels, text fields and so on.

We tried to examine the code of the generated multipage editor in order to replicate the logic in a brand new custom editor (or view), but we did not find how to do that (the generated code for an ecore with a couple of classes consists of more than 1600 lines of code).
What are the minimum steps in order to "plug" a simpler custom view or editor to the underlying generated plug-ins?

Thank you
Vincenzo
Re: EMF CRUD Generator for a database [message #649721 is a reply to message #649692] Thu, 20 January 2011 12:19 Go to previous message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
EEF but the really most promising project for you is
http://www.eclipse.org/projects/project_summary.php?projecti d=modeling.emft.emf-client
and http://code.google.com/p/unicase/wiki/ECPNavigation

Tom

Am 20.01.11 11:49, schrieb Vincenzo Caselli:
> Hi Tom,
> thanks! Indeed it took a while to find the right place to change things,
> but in the end we were able to use the generated EMF-Editor plugin with
> Teneo for managing the database!
> And that's great: a CRUD for the EMF model at zero-cost!
>
> Now we would like to move a step forward.
> In fact, the generated multipage editor allows editing with the use of
> the Properties, while we would like to have a form-like UI, that is, a
> View or Editor with labels, text fields and so on.
>
> We tried to examine the code of the generated multipage editor in order
> to replicate the logic in a brand new custom editor (or view), but we
> did not find how to do that (the generated code for an ecore with a
> couple of classes consists of more than 1600 lines of code).
> What are the minimum steps in order to "plug" a simpler custom view or
> editor to the underlying generated plug-ins?
>
> Thank you
> Vincenzo
Previous Topic:[EMF Edit] Cut Command and dangling HREF
Next Topic:Reusing ValidateAction in doSave
Goto Forum:
  


Current Time: Fri Apr 19 04:30:58 GMT 2024

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

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

Back to the top