| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- <#include "../function.ftl">
- <#include "../variable.ftl">
- <#assign pkVar=convertUnderLine(pk) >
- <#if isBaseModule = 'true'>
- package com.${cAlias}.${cPlatform}.${sys}.persistence.entity;
- <#else>
- package com.${cAlias}.${cPlatform}.${sys}.${module}.persistence.entity;
- </#if>
- <#if hasSub?exists && hasSub==true>
- import java.util.ArrayList;
- import java.util.List;
- </#if>
- /**
- * ${model.tabComment} 实体对象
- *
- *<pre>
- <#if vars.company?exists>
- * 开发公司:${vars.company}
- </#if>
- <#if vars.developer?exists>
- * 开发人员:${vars.developer}
- </#if>
- <#if vars.email?exists>
- * 邮箱地址:${vars.email}
- </#if>
- * 创建时间:${date?string("yyyy-MM-dd HH:mm:ss")}
- *</pre>
- */
- @SuppressWarnings("serial")
- public class ${class}Po extends ${class}Tbl{
- <#if hasSub?exists && hasSub==true>
- <#list model.subTableList as subTable>
- private List<${subTable.variables.class}Po> ${subTable.variables.classVar}PoList = new ArrayList<${subTable.variables.class}Po>();
- </#list>
- private boolean delBeforeSave = true;
-
- <#list model.subTableList as subTable>
- public List<${subTable.variables.class}Po> get${subTable.variables.class}PoList() {
- return ${subTable.variables.classVar}PoList;
- }
- public void set${subTable.variables.class}PoList(List<${subTable.variables.class}Po> ${subTable.variables.classVar}PoList) {
- this.${subTable.variables.classVar}PoList = ${subTable.variables.classVar}PoList;
- }
- </#list>
- public boolean isDelBeforeSave() {
- return delBeforeSave;
- }
- public void setDelBeforeSave(boolean delBeforeSave) {
- this.delBeforeSave = delBeforeSave;
- }
- </#if>
- }
|