public class EntityGenerator extends Object implements IGenerator
| Modifier and Type | Field and Description |
|---|---|
protected String |
entityWithBaseTemplatePath |
protected String |
ktEntityWithBaseTemplatePath |
protected String |
templatePath |
| Constructor and Description |
|---|
EntityGenerator() |
EntityGenerator(String templatePath) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
genBaseClass(Table table,
GlobalConfig globalConfig) |
protected void |
genEntityClass(Table table,
GlobalConfig globalConfig) |
void |
generate(Table table,
GlobalConfig globalConfig)
根据模板生成文件。
|
String |
getEntityWithBaseTemplatePath() |
String |
getTemplatePath()
获取模板文件位置。
|
void |
setEntityWithBaseTemplatePath(String entityWithBaseTemplatePath) |
void |
setTemplatePath(String templatePath)
设置模板文件位置。
|
protected String templatePath
protected String entityWithBaseTemplatePath
protected String ktEntityWithBaseTemplatePath
public EntityGenerator()
public EntityGenerator(String templatePath)
public void generate(Table table, GlobalConfig globalConfig)
IGeneratorgenerate in interface IGeneratortable - 表内容globalConfig - 全局配置protected void genEntityClass(Table table, GlobalConfig globalConfig)
protected void genBaseClass(Table table, GlobalConfig globalConfig)
public String getEntityWithBaseTemplatePath()
public void setEntityWithBaseTemplatePath(String entityWithBaseTemplatePath)
public String getTemplatePath()
IGeneratorgetTemplatePath in interface IGeneratorpublic void setTemplatePath(String templatePath)
IGeneratorsetTemplatePath in interface IGeneratorCopyright © 2024. All rights reserved.