freemarker.template.common.javabean.ftl Maven / Gradle / Ivy
package ${stratificationInfo.pojoFullPackage};
<#list tableInfo.importPackages as import>
<#if import??>
import ${import};
#if>
#list>
/**
* database : ${tableInfo.tableSchema}
* table : ${tableInfo.tableName}
* description : ${tableInfo.tableComment}
<#include "java/comment.ftl"/>
*/
public class ${stratificationInfo.pojoName} {
<#list tableInfo.columnLists as colm>
<#if colm??>
/** ${colm.columnComment} */
private ${colm.javaDataType} ${colm.javaColumnName};
#if>
#list>
<#list tableInfo.columnLists as colm>
<#if colm??>
public ${colm.javaDataType} get${colm.javaColumnName?cap_first}() {
return ${colm.javaColumnName};
}
public void set${colm.javaColumnName?cap_first}(${colm.javaDataType} ${colm.javaColumnName}) {
this.${colm.javaColumnName} = ${colm.javaColumnName};
}
#if>
#list>
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy