public class MappingKitGenerator extends Object
Modifier and Type | Field and Description |
---|---|
protected Engine |
engine |
protected String |
mappingKitClassName |
protected String |
mappingKitOutputDir |
protected String |
mappingKitPackageName |
protected String |
template |
Constructor and Description |
---|
MappingKitGenerator(String mappingKitPackageName,
String mappingKitOutputDir) |
Modifier and Type | Method and Description |
---|---|
void |
generate(List<TableMeta> tableMetas) |
protected void |
initEngine() |
void |
setMappingKitClassName(String mappingKitClassName) |
void |
setMappingKitOutputDir(String mappingKitOutputDir) |
void |
setMappingKitPackageName(String mappingKitPackageName) |
void |
setTemplate(String template)
使用自定义模板生成 MappingKit
|
protected void |
writeToFile(String ret)
_MappingKit.java 覆盖写入
|
protected Engine engine
protected String template
protected String mappingKitPackageName
protected String mappingKitOutputDir
protected String mappingKitClassName
protected void initEngine()
public void setTemplate(String template)
public void setMappingKitOutputDir(String mappingKitOutputDir)
public void setMappingKitPackageName(String mappingKitPackageName)
public void setMappingKitClassName(String mappingKitClassName)
protected void writeToFile(String ret)
Copyright © 2018. All rights reserved.