@ -9,7 +9,7 @@ import cokr.xit.tool.codegen.template.JavaTemplate;
public class BeanFactory extends TemplateBasedCodeFactory {
public BeanFactory() {
javaTemplate = new JavaTemplate("classpath:template/bean.tmpl");
javaTemplate = new JavaTemplate("template/bean.tmpl");
}
@Override
@ -8,7 +8,7 @@ import cokr.xit.tool.codegen.template.JavaTemplate;
public class ControllerFactory extends TemplateBasedCodeFactory {
public ControllerFactory() {
javaTemplate = new JavaTemplate("classpath:template/controller.tmpl");
javaTemplate = new JavaTemplate("template/controller.tmpl");
public class MapperFactory extends TemplateBasedCodeFactory {
public MapperFactory() {
javaTemplate = new JavaTemplate("classpath:template/mapper.tmpl");
javaTemplate = new JavaTemplate("template/mapper.tmpl");
@ -13,7 +13,7 @@ import cokr.xit.tool.codegen.SourceWriter;
import cokr.xit.tool.codegen.template.FileTemplate;
public class MapperXmlFactory extends CodeFactory {
private FileTemplate template = new FileTemplate("classpath:template/mapper-xml.tmpl");
private FileTemplate template = new FileTemplate("template/mapper-xml.tmpl");
public String generate() {
public class QueryFactory extends TemplateBasedCodeFactory {
public QueryFactory() {
javaTemplate = new JavaTemplate("classpath:template/query-request.tmpl");
javaTemplate = new JavaTemplate("template/query-request.tmpl");
public class ServiceBeanFactory extends TemplateBasedCodeFactory {
public ServiceBeanFactory() {
javaTemplate = new JavaTemplate("classpath:template/service-bean.tmpl");
javaTemplate = new JavaTemplate("template/service-bean.tmpl");
public class ServiceFactory extends TemplateBasedCodeFactory {
public ServiceFactory() {
javaTemplate = new JavaTemplate("classpath:template/service-interface.tmpl");
javaTemplate = new JavaTemplate("template/service-interface.tmpl");
@ -19,7 +19,7 @@ public class TestFactory extends TemplateBasedCodeFactory {
public TestFactory() {
javaTemplate = new JavaTemplate("classpath:template/service-test.tmpl");
javaTemplate = new JavaTemplate("template/service-test.tmpl");