|Generate entity annotations in orm file [message #974724]
||Wed, 07 November 2012 09:20
| Pradeep Badiger
Registered: November 2012
I am trying to generate ORM file and i want to have all the details present on the entity to be added to ORM file. For example: @Table, any custom annotation, relationship information etc. Is that possible directly from the EMF model? I dont want to generate ORM annotated model and then generate ORM file.|
|Re: Generate entity annotations in orm file [message #976156 is a reply to message #976145]
||Thu, 08 November 2012 11:00
| Martin Taal
Registered: July 2009
Something your company wants to contribute you mean?
I can probably integrate this nicely so that it is one step and happens behind the scenes for a user.
Let me know if this is indeed something you want to contribute. That would be great ofcourse!
Note, that eclipse is very strict on licensing so often it is difficult to use 3rd party libraries.
And it would be great if such a xml-transformer can be somewhat generic, as I can then use it also for the code
generation annotations model.
On 11/08/2012 11:52 AM, Pradeep Badiger wrote:
> Hi Martin,
> One thing that we can do is, generate the ORM annotated file with all ORM details from the ecore model file using XML
> transformation (include all the possible cases) by interpreting all EAnnotations with source = texo.orm.annotation. And
> then use this file to generate ORM xml file. I know its a two step process, but could help a lot.
> One major work is to include all scenarios.
> What do you think about this approach?
> Pradeep V.B.
With Regards, Martin Taal
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@xxxxxxxx - mtaal@xxxxxxxx
Web: www.springsite.com - www.elver.org
Powered by FUDForum
. Page generated in 0.01829 seconds