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

template.typological.ftl Maven / Gradle / Ivy

The newest version!
package ${modelClass.packageName};

<#list modelClass.imports as importClass>
<#if importClass??>
import ${importClass};



<#list modelClass.annotations as annotation>
${annotation.toString()}

${modelClass.toString()}{
	<#assign count = 0>
	<#list modelClass.enumValues as enumValue>
	<#assign count = count + 1>
	${enumValue.toString()}<#if count==modelClass.enumValues?size >;<#else>,
	
	
	<#list modelClass.constructors as constructor>
	${constructor.toString()}
	
	
	<#list modelClass.fields as field>
	<#list field.annotations as annotationField>
	<#if annotationField??>
	${annotationField.toString()}
		
	
    ${field.toString()}
    
	
	<#list modelClass.fields as field>
	<#if field.getter == true >
    public ${field.type} get${field.name?cap_first}(){
        return ${field.name};
    }
    
    
    <#if field.setter == true >
    public void set${field.name?cap_first}(${field.type} ${field.name}){
        this.${field.name} = ${field.name};
    }
    
    
    
    <#list modelClass.methods as method>
    <#list method.annotations as annotationMethod>
	${annotationMethod.toString()}
		
    ${method.toString()}
    
    

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy