Search in sources :

Example 1 with InsertMethodGenerator

use of org.mybatis.generator.codegen.ibatis2.dao.elements.InsertMethodGenerator in project generator by mybatis.

the class DAOGenerator method addInsertMethod.

protected void addInsertMethod(TopLevelClass topLevelClass, Interface interfaze) {
    if (introspectedTable.getRules().generateInsert()) {
        AbstractDAOElementGenerator methodGenerator = new InsertMethodGenerator();
        initializeAndExecuteGenerator(methodGenerator, topLevelClass, interfaze);
    }
}
Also used : InsertMethodGenerator(org.mybatis.generator.codegen.ibatis2.dao.elements.InsertMethodGenerator) AbstractDAOElementGenerator(org.mybatis.generator.codegen.ibatis2.dao.elements.AbstractDAOElementGenerator)

Aggregations

AbstractDAOElementGenerator (org.mybatis.generator.codegen.ibatis2.dao.elements.AbstractDAOElementGenerator)1 InsertMethodGenerator (org.mybatis.generator.codegen.ibatis2.dao.elements.InsertMethodGenerator)1