Search in sources :

Example 1 with InsertSelectiveMethodGenerator

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

the class DAOGenerator method addInsertSelectiveMethod.

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

Aggregations

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