All Downloads are FREE. Search and download functionalities are using the official Maven repository.

nerator.1.4.source-code.templates.xml Maven / Gradle / Ivy

<?xml version="1.0" encoding="UTF-8"?>
<templates xmlns="http://redora.net"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://redora.net http://redora.googlecode.com/files/templates.xsd">

    <!--
        Stub classes, generated once, after that they can be changed by
        the user. The input="Model" here.
    -->
    <!-- J2SE Pojo class, can be enhanced by user -->
    <template name="${objectName}" package="model" type="freemarker"
        destination="source" destinationType="java" input="Model" />
    <!-- SQL stub, can be enhanced by user -->
    <template name="${objectName}SQL" package="sql" type="freemarker"
        destination="source" destinationType="java" input="Model" />
    <!-- Business rules stub, can be enhanced by user -->
    <template name="${objectName}BusinessRules" package="businessrules"
        type="freemarker" destination="source" destinationType="java"
        input="Model" />
    <!-- J2SE Service stub, can be enhanced by user -->
    <template name="${objectName}Service" package="service"
        type="freemarker" destination="source" destinationType="java"
        input="Model" />
    <!-- JSON Service stub, can be enhanced by user -->
    <template name="${objectName}ServiceJSON" package="service"
        type="freemarker" destination="source" destinationType="java"
        input="Model" />
    <!-- Servlet stub, can be enhanced by user -->
    <template name="${objectName}Servlet" package="service.http"
        type="freemarker" destination="source" destinationType="java"
        input="Model" />

    <!--
        PojoBase classes. For each object in the model base classes are
        generated. Base classes are extended by stub classes as defined
        above.
    -->
    <!-- J2SE Pojo base class -->
    <template name="${objectName}Base" package="model.base"
        type="freemarker" destination="target" destinationType="java"
        input="Model" />
    <!-- all the generated SQL goes here -->
    <template name="${objectName}SQLBase" package="sql.base"
        type="freemarker" destination="target" destinationType="java"
        input="Model" />
    <!-- all the generated business rules go here -->
    <template name="${objectName}BusinessRulesBase" package="businessrules.base"
        type="freemarker" destination="target" destinationType="java"
        input="Model" />
    <!-- J2SE Service class: the old school way to access data -->
    <template name="${objectName}ServiceBase" package="service.base"
        type="freemarker" destination="target" destinationType="java"
        input="Model" />
    <!-- JSON Service class, for rich client data access -->
    <template name="${objectName}ServiceJSONBase" package="service.base"
        type="freemarker" destination="target" destinationType="java"
        input="Model" />
    <!-- Servlet that allows access to client service layer. -->
    <template name="${objectName}ServletBase" package="service.base"
        type="freemarker" destination="target" destinationType="java"
        input="Model" />

    <!--
        Pojo classes. For each object in the model classes are
        generated. These classes are not extended and cannot be changed
    -->
    <!-- Utilities, like copying data -->
    <template name="${objectName}Util" package="service" type="freemarker"
        destination="target" destinationType="java" input="Model" />
    <!-- Enum with all the defined fields in the model -->
    <template name="${objectName}Fields" package="model.fields"
        type="freemarker" destination="target" destinationType="java"
        input="Model" />
    <!-- Per object functionality to maintain the database. -->
    <template name="${objectName}TableCheck" package="service.check"
        type="freemarker" destination="target" destinationType="java"
        input="Model" />

    <!-- GWT code -->
    <template name="${objectName}" package="gwt.model" type="freemarker"
        templateFileName="GWTPojo.ftl" destination="target"
        destinationType="java" input="Model" gwtClient="true" />
    <template name="${objectName}Fields" package="gwt.model.fields"
        type="freemarker" templateFileName="GWTPojoFields.ftl"
        destination="target" destinationType="java" input="Model" gwtClient="true" />
    <template name="Constants" package="gwt.constants"
        templateFileName="GWTConstants.ftl" type="freemarker"
        destination="target" destinationType="java" input="AllModels" gwtClient="true" />
    <template name="GlobalEnumConstants" package="gwt.constants"
        templateFileName="GWTGlobalEnumConstants.ftl" type="freemarker"
        destination="target" destinationType="java" input="AllModels" gwtClient="true" />
    <template name="Constants_${language}" templateFileName="Constants_Properties.xsl"
        package="gwt.constants" type="xslt" destination="target"
        destinationType="properties" input="Language" gwtClient="true" />
    <template name="GlobalEnumConstants_${language}"
        templateFileName="GlobalEnumConstants_Properties.xsl" package="gwt.constants"
        type="xslt" destination="target" destinationType="properties"
        input="Language" gwtClient="true" />
    <template name="Messages" package="gwt.constants"
        templateFileName="GWTMessages.ftl" type="freemarker"
        destination="target" destinationType="java" input="AllModels" gwtClient="true" />
    <template name="Messages_${language}" templateFileName="Messages_Properties.xsl"
        package="gwt.constants" type="xslt" destination="target"
        destinationType="properties" input="Language" gwtClient="true" />
    <template name="MessageAllocator" templateFileName="GWTMessageAllocator.ftl"
        package="gwt.constants" type="freemarker" destination="target"
        destinationType="java" input="AllModels" gwtClient="true" />
    <template name="Application.gwt" templateFileName="GWTApplication.gwt.xml.ftl"
        package="gwt" ignoreProjects="p-test, p-configuration" type="freemarker"
        destination="source" destinationType="xml" input="AllModels" gwtClient="true" />
    <template name="Application" templateFileName="GWTApplication.html.ftl"
        package="gwt.public" ignoreProjects="p-test, p-configuration"
        type="freemarker" destination="source" destinationType="html"
        input="AllModels" gwtClient="true" />

    <template name="${objectName}ServiceBase" package="gwt.mvp.service.base"
        type="freemarker" destination="target" templateFileName="GWTPojoServiceBase.ftl"
        destinationType="java" input="Model" gwtClient="true" />
    <template name="${objectName}Service" package="gwt.mvp.service"
        type="freemarker" templateFileName="GWTPojoService.ftl"
        destination="source" destinationType="java" input="Model" gwtClient="true" />
    <template name="${objectName}EditView" package="gwt.mvp.view"
        type="freemarker" destination="target" templateFileName="GWTPojoEditView.ftl"
        destinationType="java" input="Model" gwtClient="true" />
    <template name="${objectName}Util" package="gwt.mvp.util"
        type="freemarker" destination="target" templateFileName="GWTPojoUtil.ftl"
        destinationType="java" input="Model" gwtClient="true" />

    <template name="AppActivityMapper" templateFileName="GWTAppActivityMapper.ftl"
        package="gwt.mvp" type="freemarker" destination="target"
        destinationType="java" input="AllModels" gwtClient="true" />
    <template name="ClientFactoryImpl" templateFileName="GWTClientFactoryImpl.ftl"
        package="gwt.mvp.util" type="freemarker" destination="target"
        destinationType="java" input="AllModels" gwtClient="true" />
    <template name="LocatorImpl" templateFileName="GWTLocatorImpl.ftl"
        package="gwt.mvp.service" type="freemarker" destination="target"
        destinationType="java" input="AllModels" gwtClient="true" />


    <template name="redoraServlet"
        ignoreProjects="p-test, p-configuration" type="freemarker"
        destination="target" path="" destinationType="xml"
        input="AllModels" />
    <template name="redoraMapping"
        ignoreProjects="p-test, p-configuration" type="freemarker"
        destination="target" path="" destinationType="xml"
        input="AllModels" />
    <template name="web" package="service.http"
        ignoreProjects="p-test,p-configuration" type="freemarker"
        destination="source" path="main/webapp/WEB-INF" destinationType="xml" input="AllModels" />

    <template name="GWTShowcase" package="gwt.client" type="freemarker"
        destination="target" destinationType="java" input="AllModels" gwtClient="true" />
    <!-- Central style classes : input="AllModels"-->

    <!-- Per object functionality to maintain the database. -->
    <template name="ServiceFactory" package="service" type="freemarker"
        destination="target" destinationType="java" input="AllModels" />
    <template name="Upgrade" package="service" type="freemarker"
        destination="target" destinationType="java" input="AllModels" />
    <template name="ModelViewService" package="service"
        ignoreProjects="p-test,p-configuration" type="freemarker"
        destination="target" destinationType="java" input="AllModels" />
    <template name="RedoraServlet" package="service.http"
        ignoreProjects="p-test,p-configuration" type="freemarker"
        destination="source" destinationType="java" input="AllModels" />
    <template name="RedoraServletBase" package="service.base"
        ignoreProjects="p-test,p-configuration" type="freemarker"
        destination="target" destinationType="java" input="AllModels" />

    <!-- Database create scripts.-->
    <template name="CreateScripts" type="freemarker" destination="redora" destinationType="sql"
        input="AllModels" />

    <!--
        Classes generated on other iterated sets: per language and per
        enum
    -->
    <!-- Global enumeration classes -->
    <template name="${classAttribute}" templateFileName="Enum.ftl"
        package="model.enums" type="freemarker" destination="target"
        destinationType="java" input="Enum" />

    <!-- GWT Global enumeration classes -->
    <template name="${classAttribute}" templateFileName="GWTEnum.ftl"
        package="gwt.model.enums" type="freemarker" destination="target"
        destinationType="java" input="Enum" gwtClient="true" />

</templates>




© 2015 - 2025 Weber Informatics LLC | Privacy Policy