All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.artifact.builder.template.DaoTemplate Maven / Gradle / Ivy

There is a newer version: 1.0.5
Show newest version
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";
//	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy