|
Re: customization templates: EPackageModelGenAnnotation not found [message #986718 is a reply to message #986692] |
Wed, 21 November 2012 12:47 |
Martin Taal Messages: 5468 Registered: July 2009 |
Senior Member |
|
|
Hi Gabriele,
I have testcases for template overriding, so maybe it is specific to this template. Which template are you overriding?
Fyi, the xpand templates in git are not being used for code generation anymore, I moved Texo to xtend2, so over time the
xpand templates in git may get outdated.
gr. Martin
On 11/21/2012 12:23 PM, gabriele boldrin wrote:
> Hi Martin, thanks for the bug fixed but now I have another problem in customizing templates
> I have overwritten your templates following the procedure that you indicated in the blog
> (http://wiki.eclipse.org/Texo/Template_Overriding)
> but when I'm generating the code using the action "JPA Annotated Model Code + DAO", this error occurs:
>
>
> Click the details button for more information, and check the Error Log view for any exceptions.
> java.lang.IllegalStateException: No Definition
> 'org::eclipse::emf::texo::modelgenerator::templates::modelpackage::root(org::eclipse::emf::texo::generator::ModelController)
> for org::eclipse::emf::texo::modelgenerator::modelannotations::EPackageModelGenAnnotation' found!
>
> I thought I have done something wrong, so I replaced my templates in the folder "templates" with your templates
> downloaded from GIT repository.
> This should produce the same code that the system creates by default.
> But the system gives me the same error so I assume that there is some problem in overriding templates.
--
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: customization templates: EPackageModelGenAnnotation not found [message #986807 is a reply to message #986718] |
Wed, 21 November 2012 17:22 |
gabriele Mising name Messages: 19 Registered: December 2009 |
Junior Member |
|
|
Hi Martin,
If I put this template "advices.xpt" (that is empty) I get this error (the template is downloaded from your GIT Repository)
Click the details button for more information, and check the Error Log view for any exceptions.
java.lang.IllegalStateException: No Definition 'org::eclipse::emf::texo::modelgenerator::templates::advices::root(org::eclipse::emf::texo::generator::ModelController) for org::eclipse::emf::texo::generator::ModelController' found!
If I put this template "modelpackage.xpt" I get this error (the template is downloaded from your GIT Repository)
Click the details button for more information, and check the Error Log view for any exceptions.
java.lang.IllegalStateException: No Definition 'org::eclipse::emf::texo::modelgenerator::templates::modelpackage::root(org::eclipse::emf::texo::generator::ModelController) for org::eclipse::emf::texo::modelgenerator::modelannotations::EPackageModelGenAnnotation' found!
[Updated on: Wed, 21 November 2012 17:22] Report message to a moderator
|
|
|
|
|
|
|
Re: customization templates: EPackageModelGenAnnotation not found [message #988399 is a reply to message #988323] |
Thu, 29 November 2012 18:00 |
Martin Taal Messages: 5468 Registered: July 2009 |
Senior Member |
|
|
Hi Gabriele,
Yes this is interesting functionality, I have seen this requirement more often. Are there ideas/solutions which you
could/want to share/contribute to get support for this in Texo?
For example, people change the ecore model? Do you add subtypes or add dynamic efeatures to an eclass?
gr. Martin
On 11/29/2012 01:04 PM, gabriele boldrin wrote:
> Hi Martin,
>
> I have changed some things.
> My application has a requirement to support dynamic (flex) fields on Entity Objects.
> In addition, this application runs in a multitenant environment.
> I used EMF for the description and data management.
> My requirement is to have in memory for the same model n° instances of modelPackage because every user can add/remove
> custom attributes on the fly.
--
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
|
|
|
Powered by
FUDForum. Page generated in 0.08239 seconds