Search in sources :

Example 1 with DeleteByExampleMethodGenerator

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

the class DAOGenerator method addDeleteByExampleMethod.

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

Aggregations

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