Generate entity annotations in orm file [message #974724] |
Wed, 07 November 2012 04:20  |
Eclipse User |
|
|
|
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.
thanks,
Pradeep V.B.
|
|
|
|
|
|
Re: Generate entity annotations in orm file [message #976156 is a reply to message #976145] |
Thu, 08 November 2012 06:00   |
Eclipse User |
|
|
|
Hi Pradeep,
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.
gr. Martin
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?
>
> thanks,
> Pradeep V.B.
--
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@xxxxxxxx - mtaal@xxxxxxxx
Web: www.springsite.com - www.elver.org
|
|
|
Re: Generate entity annotations in orm file [message #977191 is a reply to message #976156] |
Fri, 09 November 2012 00:03  |
Eclipse User |
|
|
|
Hi Martin,
Surely would love to contribute.. But i will need time to implement it as i have other assignments.
Is is possible for you to give me an orm annotated model instance containing all possible ORM annotations in it? I will take that as a reference and create the XSL.
thanks,
Pradeep V.B.
[Updated on: Fri, 09 November 2012 00:38] by Moderator
|
|
|
Powered by
FUDForum. Page generated in 0.27032 seconds