本文整理了Java中org.mybatis.generator.config.TableConfiguration.isDeleteByPrimaryKeyStatementEnabled()
方法的一些代码示例,展示了TableConfiguration.isDeleteByPrimaryKeyStatementEnabled()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。TableConfiguration.isDeleteByPrimaryKeyStatementEnabled()
方法的具体详情如下:
包路径:org.mybatis.generator.config.TableConfiguration
类名称:TableConfiguration
方法名:isDeleteByPrimaryKeyStatementEnabled
暂无
代码示例来源:origin: cxjava/mybatis-generator-core
/**
* Implements the rule for generating the delete by primary key SQL Map
* element and DAO method. If the table has a primary key, and the
* deleteByPrimaryKey statement is allowed, then generate the element and
* method.
*
* @return true if the element and method should be generated
*/
public boolean generateDeleteByPrimaryKey() {
boolean rc = tableConfiguration.isDeleteByPrimaryKeyStatementEnabled()
&& introspectedTable.hasPrimaryKeyColumns();
return rc;
}
代码示例来源:origin: roncoo/roncoo-mybatis-generator
/**
* Implements the rule for generating the delete by primary key SQL Map
* element and DAO method. If the table has a primary key, and the
* deleteByPrimaryKey statement is allowed, then generate the element and
* method.
*
* @return true if the element and method should be generated
*/
public boolean generateDeleteByPrimaryKey() {
if (isModelOnly) {
return false;
}
boolean rc = tableConfiguration.isDeleteByPrimaryKeyStatementEnabled()
&& introspectedTable.hasPrimaryKeyColumns();
return rc;
}
代码示例来源:origin: org.mybatis.generator/mybatis-generator-core
/**
* Implements the rule for generating the delete by primary key SQL Map
* element and DAO method. If the table has a primary key, and the
* deleteByPrimaryKey statement is allowed, then generate the element and
* method.
*
* @return true if the element and method should be generated
*/
@Override
public boolean generateDeleteByPrimaryKey() {
if (isModelOnly) {
return false;
}
boolean rc = tableConfiguration.isDeleteByPrimaryKeyStatementEnabled()
&& introspectedTable.hasPrimaryKeyColumns();
return rc;
}
代码示例来源:origin: handosme/mybatis-generator-plus
/**
* Implements the rule for generating the delete by primary key SQL Map
* element and DAO method. If the table has a primary key, and the
* deleteByPrimaryKey statement is allowed, then generate the element and
* method.
*
* @return true if the element and method should be generated
*/
public boolean generateDeleteByPrimaryKey() {
if (isModelOnly) {
return false;
}
boolean rc = tableConfiguration.isDeleteByPrimaryKeyStatementEnabled()
&& introspectedTable.hasPrimaryKeyColumns();
return rc;
}
内容来源于网络,如有侵权,请联系作者删除!