Search in sources :

Example 1 with UpdateByExampleSelectiveMethodGenerator

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

the class DAOGenerator method addUpdateByExampleSelectiveMethod.

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

Aggregations

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