Search in sources :

Example 1 with CountByExampleMethodGenerator

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

the class DAOGenerator method addCountByExampleMethod.

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

Aggregations

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