openxava generate groovy

15 views
Skip to first unread message

More Beer

unread,
May 22, 2013, 2:44:10 PM5/22/13
to minute...@googlegroups.com
Is there a possiblity to let minuteProject generate groovy instead of java code ?

Kind regards

Tore

Florian Adler

unread,
May 22, 2013, 3:23:46 PM5/22/13
to minute...@googlegroups.com
Hello,

If you want to generate with the extension groovy instead of java
In the file mp-template-config-openxava-last-features.xml with is in mywork/config modify the nodes 

- template name="OpenxavaDomainObjectUML"
- template name="OpenxavaDomainEntityJPA2EmbeddedId"

change file-extension="java" with file-extension="groovy"

If you want the code inside to be groovy=like then the template have to be changed:
The templates to adapt are:
template/framework/openxava/DomainObjectUMLJPAAnnotationOXAnnotationV4.vm
template/framework/openxava/DomainEntityJPA2EmbeddedId.vm

It is true that it would remove some 'useless' getter/setter LOCs.

But it is not done, now.

Best regards,

Florian





--
Vous recevez ce message, car vous êtes abonné au groupe Google Groupes minuteproject.
Pour vous désabonner de ce groupe et ne plus recevoir d'e-mails le concernant, envoyez un e-mail à l'adresse minuteprojec...@googlegroups.com.
Pour plus d'options, visitez le site https://groups.google.com/groups/opt_out .
 
 

More Beer

unread,
May 23, 2013, 12:48:48 AM5/23/13
to minute...@googlegroups.com
Thanks for the information
I will give it a try.

Kind regards

Tore

Op woensdag 22 mei 2013 21:23:46 UTC+2 schreef florian adler het volgende:

More Beer

unread,
May 25, 2013, 2:30:20 AM5/25/13
to minute...@googlegroups.com
Dear Florian,

the file template/framework/openxava/DomainEntityJPA2EmbeddedId.vm seems not to be available.
I only can find a file DomainEntityJPA2EmbeddedId.vm in  template/framework/jpa/DomainEntityJPA2EmbeddedId.vm
Is it ok to change this one ?

I am working with the 8.0.3 version of minuteProject


Kind regards

Tore

Op woensdag 22 mei 2013 21:23:46 UTC+2 schreef florian adler het volgende:
Hello,

Florian Adler

unread,
May 25, 2013, 12:14:44 PM5/25/13
to minute...@googlegroups.com
Hello Tore,

Yes you are right.

Both JPA2 and OX tracks are sharing DomainEntityJPA2EmbeddedId.vm
It is in the template/framework/jpa/DomainEntityJPA2EmbeddedId.vm

Best regards,

Florian.


2013/5/25 More Beer <moreb...@gmail.com>
Reply all
Reply to author
Forward
0 new messages