Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [Texo] Generation produces only *ModelFactory.java and *ModelPackage.java
[Texo] Generation produces only *ModelFactory.java and *ModelPackage.java [message #780618] Wed, 18 January 2012 19:28 Go to next message
Kari Hirvi is currently offline Kari HirviFriend
Messages: 2
Registered: January 2012
Junior Member
Hello,

I'm trying to generate a pojo model from capua.ecore available at code.google.com/a/eclipselabs.org/p/capua/source/browse/#svn%2Ftrunk%2Feclipse%2Fcapua%2Fmodel

Right click the capua.ecore file, select Texo -> Generate Model Code
but I only get two files (see attachment) and no domain classes at all.
I'm using version:
EMFT Texo SDK (Incubation) 0.1.0.v201112171308

For testing purposes I made a simple *.ecore model with few classes and
generating pojos from that seemed to work.


BR,
Kari Hirvi
Re: [Texo] Generation produces only *ModelFactory.java and *ModelPackage.java [message #780635 is a reply to message #780618] Wed, 18 January 2012 20:26 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Kari,
Hmm, the eclasses are detected, do you get compile errors on the ModelFactory? I mean are you sure that the java classes
are not somewhere else?

gr. Martin

On 01/18/2012 08:28 PM, Kari Hirvi wrote:
> Hello,
>
> I'm trying to generate a pojo model from capua.ecore available at code.google.com/a/eclipselabs.org/p/capua/source/browse/#svn%2Ftrunk%2Feclipse%2Fcapua%2Fmodel
>
> Right click the capua.ecore file, select Texo -> Generate Model Code
> but I only get two files (see attachment) and no domain classes at all.
> I'm using version:
> EMFT Texo SDK (Incubation) 0.1.0.v201112171308
>
> For testing purposes I made a simple *.ecore model with few classes and
> generating pojos from that seemed to work.
>
>
> BR,
> Kari Hirvi


--

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
Re: [Texo] Generation produces only *ModelFactory.java and *ModelPackage.java [message #780732 is a reply to message #780635] Thu, 19 January 2012 09:01 Go to previous message
Kari Hirvi is currently offline Kari HirviFriend
Messages: 2
Registered: January 2012
Junior Member
I found the reason for this problem.

I have another plugin project, called capua.mwd (also in google code), which I
had exported to eclipse/plugins directory. The capua.mdw project has an *.ecore
model with exactly the same simple class names (but in different namespace as
specified by *.genmodel).

The "capua" project generates classes to "fi.fun.metamodel" namespace and
"capua.mdw" project generates to "fi.fun.mdw.metamodel" namespace.
So, if you're searching for classes based on simple name only, you'll get wrong
ones since "capua.mdw" was already deployed as a plugin (and you'll get classes
from "fi.fun.mdw.metamodel" namespace).

As a workaround, I removed the plugin from eclipse/plugins directory
and I got the domain model classes generated.

Kari
Previous Topic:Edapt: How to specify namespace URI for different versions of a meta-model
Next Topic:database metamodel
Goto Forum:
  


Current Time: Thu Apr 25 10:18:51 GMT 2024

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

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

Back to the top