-
Notifications
You must be signed in to change notification settings - Fork 0
Annomark
March 2013
"annomark" will NOT be developed any longer after release 2.5.11.
"annomark" is a tool that combines "annogen" and "freemarker". This combination allows to process your classes with your annotations without the need for low-level java-programming with the annogen and freemarker APIs. You just annotate your classes (with predefined or own annotations) and use one of the predefined freemarker templates (or create your own templates) to generate one or more output files. With the templates already provided, you can:
- generate POJOs as Transfer-Objects (template: java-pojo.ftl)
- generate Dozer-Mappings for the Transfer-Objects (template: dozer-mapping.ftl)
- generate xml-beaninfos for the agimatec-validation framework from javax.persistence annotations.
Hint: the entity classes with javax.persistence-annotations can be generated with the CatalogGeneratorTool from your sql schema (template ejb3-prototype.ftl).
Create your own templates, e.g. for struts-validation from your Form-Classes, for WSDL from your classes, GUI layouts, documentation, Interfaces, business-rules and constraints . We appreciate your ideas and input to enhance "annomark".
<dependency>
<groupId>de.viaboxx</groupId>
<artifactId>annomark</artifactId>
<version>2.5.11</version>
</dependency>
Hints:
- you need annogen-0.1.1. If you cannot find it on official annogen-sides, refer to the download-section of agimatec-tools.
- There might be logged errors and warnings when using annogen. It works nevertheless.
- annogen-0.1.1 cannot parse static imports. Avoid them when you want your classes processed.
In the annomark.jar are some ant-Tasks. Documentation here: [NLSTools]