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);
}
}
Aggregations