Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [TEXO] EMF which Code generation
[TEXO] EMF which Code generation [message #635785] Thu, 28 October 2010 06:33 Go to next message
Dennis Melzer is currently offline Dennis MelzerFriend
Messages: 244
Registered: July 2009
Senior Member
Hello,

i have a ecore model. From this ecore Model i create a genmodel which generates my Java Code.

Now i create from the ecore a annotationsmodel by Texo.
I want to create the orm.xml But i dont know which Java-Code generation i have to use? The generation from Texo generate Model Code without Interfaces?
Or can I use the genmodel and the annotationsmodel?

Is there a code example in svn or cvs?

Thanks


Re: [TEXO] EMF which Code generation [message #635820 is a reply to message #635785] Thu, 28 October 2010 09:21 Go to previous message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Wayne,
The Texo orm generation assumes that you generated Texo code and not EMF code. As Texo generates true pojos (with
standard list implementations) the orm mapping is easier and can run on a standard runtime without extra runtime layers
(like Teneo). Here are some special code generation features btw:
http://wiki.eclipse.org/Texo/Code_Generation_Patterns

The Teneo orm generation assumes that you generated code using EMF and genmodel.

Btw, Texo currently has 2 annotation models: 1) for code generation, 2) for orm. My advice is to only fill the
annotations model with the things you want to override from the standard generation, so remove all the other annotations
which you don't want to override.

gr. Martin

On 10/28/2010 08:33 AM, SirWayne wrote:
> Hello,
>
> i have a ecore model. From this ecore Model i create a genmodel which
> generates my Java Code.
>
> Now i create from the ecore a annotationsmodel by Texo.
> I want to create the orm.xml But i dont know which Java-Code generation
> i have to use? The generation from Texo generate Model Code without
> Interfaces? Or can I use the genmodel and the annotationsmodel?
>
> Is there a code example in svn or cvs?
>
> Thanks
>
>
>


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
Previous Topic:Multiple tabs inside an editor
Next Topic:Generating java code from ecore by texo outside UI
Goto Forum:
  


Current Time: Fri Apr 26 12:14:13 GMT 2024

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

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

Back to the top