Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Is there a smart way to adjust/use the EMF code generator for instances of my ecore model?
Is there a smart way to adjust/use the EMF code generator for instances of my ecore model? [message #629971] Thu, 30 September 2010 07:12 Go to next message
Bernd Vogt is currently offline Bernd VogtFriend
Messages: 34
Registered: July 2009
Member
Hi,

currently, I'm playing with a lite Android project that uses the
build-in SQLite database of Android. I like Android and SQLite mutch,
but when I introduce a new SQLite table I have to write a lot of
boilerplate code (Java constants for table names, column names,
create/drop/insert statements and so on).

Now, I'm thinking about to unleash the power of modeling. I have a
little SQLite model (sqlite.ecore) to define database schmeas. For that
schemas I want to generate the boilerplate code.

Unfortunately, I'm to lazy to implement the whole code gegeration for my
SQLite models on my own and I'm spoiled by the cool features of the EMF
code generator like 'merge' and 'dynamic templates'.

Is there a smart way to adjust/use the EMF code generator in a way that
he produces code for instances of my SQLite model?

Kind regards,
Bernd
Re: Is there a smart way to adjust/use the EMF code generator for instances of my ecore model? [message #629990 is a reply to message #629971] Thu, 30 September 2010 08:55 Go to previous message
Bernd Vogt is currently offline Bernd VogtFriend
Messages: 34
Registered: July 2009
Member
Am 30.09.2010 09:12, schrieb Bernd Vogt:
> Is there a smart way to adjust/use the EMF code generator in a way that
> he produces code for instances of my SQLite model?

A colleague of mine had the idea of an generator generator. More
precisely, to generate GeneratorAdapters for all EObjects of my ecore model.
Previous Topic:Usage Of Switch And Adapter Factory
Next Topic:Repopulating a table in the dialog on checkbox selection
Goto Forum:
  


Current Time: Fri Apr 26 17:10:49 GMT 2024

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

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

Back to the top