Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [texo] Annotations not generated(ORM model annotations are not generated to code)
[texo] Annotations not generated [message #557854] Thu, 09 September 2010 08:57 Go to next message
Daniel  is currently offline Daniel Friend
Messages: 16
Registered: June 2010
Junior Member
Hello,

I am new to texo. I started with a small sample ecore with two tables. Yesterday I've installed texo (actual version), JDK1.6. I can create the annotationsmodel from my ecore file without any problems. Therefore I click "Generate ORM annotated model" from the context menu. This results into a <ecore-name>-orm.annotationsmodel file that contains some ORM annotations like @Entitiy. But the generated code that I also create from the texo context menu doesn't contain these annotations. I also renamed the annotationsmodel file to <ecore-name>.annotationsmodel as described at http:// wiki.eclipse.org/Texo/Code_Generation_Details#How_Texo_uses_ the_Annotations_Model chapter "How Texo uses the annotatoins model" without success.

Do I have to do something else to generate the annotations? I don't find any information at the web. Or do I have some misconfiguration?

Thanks,
Daniel
Re: [texo] Annotations not generated [message #557866 is a reply to message #557854] Thu, 09 September 2010 09:47 Go to previous message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Daniel,
Texo currently does not generate the jpa annotations in the code. I checked with several ORM people and they all advice
to do the jpa annotations in a separate orm.xml file, therefore this is the first mode to support.

I am waiting for the first proponent of jpa annotations in the java code to implement that part. The Texo infrastructure
is setup for supporting that also.

gr. Martin

On 09/09/2010 10:57 AM, Daniel wrote:
> Hello,
>
> I am new to texo. I started with a small sample ecore with two tables.
> Yesterday I've installed texo (actual version), JDK1.6. I can create the
> annotationsmodel from my ecore file without any problems. Therefore I
> click "Generate ORM annotated model" from the context menu. This results
> into a <ecore-name>-orm.annotationsmodel file that contains some ORM
> annotations like @Entitiy. But the generated code that I also create
> from the texo context menu doesn't contain these annotations. I also
> renamed the annotationsmodel file to <ecore-name>.annotationsmodel as
> described at
> http://wiki.eclipse.org/Texo/Code_Generation_Details#How_Tex o_uses_the_Annotations_Model
> chapter "How Texo uses the annotatoins model" without success.
>
> Do I have to do something else to generate the annotations? I don't find
> any information at the web. Or do I have some misconfiguration?
>
> Thanks,
> Daniel


--

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:EResource
Next Topic:[texo] Annotations not generated
Goto Forum:
  


Current Time: Fri Apr 19 10:12:18 GMT 2024

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

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

Back to the top