org.artifact.builder.template.BeanTemplate Maven / Gradle / Ivy
package org.artifact.builder.template;
import java.io.File;
import org.artifact.builder.AbstractModeleBuilder;
import cn.hutool.core.util.StrUtil;
/**
* @author : DengYing
* @CreateDate : 2018年2月26日 下午5:44:16
* @Description :实体模板
*/
public class BeanTemplate extends DesignTemplate {
public BeanTemplate(AbstractModeleBuilder builder) {
super(builder);
}
@Override
public String getTemplateName() {
return "bean.btl";
}
@Override
public String getPackage() {
return getBuilder().getPackageName() + StrUtil.DOT + "bean";
}
@Override
public String getPath() {
return getBuilder().getSourcePath() + File.separator + "bean";
}
// @Override
// public String getClassName(String tableName) {
// return super.getClassName(tableName);
// }
@Override
public String getClassSuffix() {
return "";
}
}