
com.lindzh.mybatis.generator.code.AbstractGenerator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mybatis-generator Show documentation
Show all versions of mybatis-generator Show documentation
MybatisGenerator is a xml ,sql and dao generator from java beans.
The newest version!
package com.lindzh.mybatis.generator.code;
import java.util.HashMap;
import java.util.Map;
import com.lindzh.mybatis.generator.bean.MybatisPojo;
import com.lindzh.mybatis.generator.freemarker.FreemarkerService;
import com.lindzh.mybatis.generator.freemarker.FtlSqlType;
/**
*
* @author lindezhi
* 2015年11月14日 上午11:39:00
*/
public abstract class AbstractGenerator {
protected FreemarkerService freemarkerService;
protected MybatisPojo mybatisPojo;
protected Map params = new HashMap();
public AbstractGenerator(FreemarkerService freemarkerService,MybatisPojo mybatisPojo){
this.freemarkerService = freemarkerService;
this.mybatisPojo = mybatisPojo;
params.put("sqlTypeFunc",new FtlSqlType());
params.put("pre", "#{");
params.put("end", "}");
params.put("mybatis", mybatisPojo);
}
public abstract String parse();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy