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

templates.generator.java.default.dto_java.txt Maven / Gradle / Ivy

The newest version!
package ${table.dtoPackageName};

import java.io.Serializable;
#foreach(${typeImport} in ${table.typeImportList})
import ${typeImport};
#end

/**
 * The dto of the table "${table.name}".
 * @author $!{author}
 * @date $!{date}
 */
public class ${table.dtoClassName} implements Serializable {

    /* (Start) This will be covered, please do not modify. */
#foreach(${column} in ${table.columnList})
    /**
     * $!{column.remarks}
     */
    private ${column.javaType} ${column.fieldName};
#end

#foreach(${column} in ${table.columnList})
    public void ${column.setterName}(${column.javaType} ${column.fieldName}) {

        this.${column.fieldName} = ${column.fieldName};
    }
    public ${column.javaType} ${column.getterName}() {

        return this.${column.fieldName};
    }

#end
    @Override
    public String toString() {
        return "${table.dtoClassName}{" +
#set($temp = 0)#foreach(${column} in ${table.columnList})
                "#if($temp > 0), #end#set($temp = $temp + 1)${column.fieldName}='" + ${column.fieldName} + '\'' +
#end
                '}';
    }

    /* (End) This will be covered, please do not modify. */
    /* Generated by artoria-extend in ${buildTime}. */

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy