org.artifact.builder.template.DaoTemplate 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 :DAO模板
*/
public class DaoTemplate extends DesignTemplate {
public DaoTemplate(AbstractModeleBuilder builder) {
super(builder);
}
@Override
public String getTemplateName() {
return "dao.btl";
}
@Override
public String getPackage() {
return getBuilder().getPackageName() + StrUtil.DOT + "dao";
}
@Override
public String getPath() {
return getBuilder().getSourcePath() + File.separator + "dao";
}
@Override
public String getClassSuffix() {
return "DAO";
}
// @Override
// public String getClassName(String tableName) {
// return super.getClassName(tableName) + "DAO";
// }
}