Search in sources :

Example 1 with SelectByPrimaryKeyMethodGenerator

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

the class DAOGenerator method addSelectByPrimaryKeyMethod.

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

Aggregations

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