Search in sources :

Example 1 with DeleteByPrimaryKeyMethodGenerator

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

the class DAOGenerator method addDeleteByPrimaryKeyMethod.

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

Aggregations

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