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

com.lindzh.mybatis.generator.code.SqlCodeGenerator Maven / Gradle / Ivy

The newest version!
package com.lindzh.mybatis.generator.code;

import com.lindzh.mybatis.generator.bean.MybatisPojo;
import com.lindzh.mybatis.generator.freemarker.FreemarkerService;

/**
 * Created by Administrator on 2017/4/8.
 */
public class SqlCodeGenerator extends AbstractGenerator {
    private static final String SQL_TEMPLATE = "sql_press";

    public SqlCodeGenerator(FreemarkerService freemarkerService, MybatisPojo mybatisPojo) {
        super(freemarkerService, mybatisPojo);
    }

    @Override
    public String parse() {
        return freemarkerService.merge(SQL_TEMPLATE, params);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy