[
https://jira.jboss.org/jira/browse/JBIDE-3835?page=com.atlassian.jira.plu...
]
Andre Salvati commented on JBIDE-3835:
--------------------------------------
I was thinking about this kind of use with Freemarker's directives:
http://apt-jelly.sourceforge.net/directives.html#ifHasAnnotation
I haven't thinked about this use for toolclass, but it works and solves my problem:
<#if
pojo.decoratedObject.mappedClass.getDeclaredField(property.name).isAnnotationPresent(annotations.restricaoComEmpresa)>
Thanks.
Update freemarker version
-------------------------
Key: JBIDE-3835
URL:
https://jira.jboss.org/jira/browse/JBIDE-3835
Project: Tools (JBoss Tools)
Issue Type: Feature Request
Reporter: Andre Salvati
Seam comes with freemarker 3.2.8 jar today. The last freemarker stable version is
3.2.15.
http://sourceforge.net/project/showfiles.php?group_id=794&package_id=787
There is a new function which allows call Java code to handle decisions about code
generation. It would be interesting using annotations on Pojo as directives for code
generation.
http://freemarker.sourceforge.net/docs/pgui_datamodel_directive.html
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira