本文整理了Java中org.mybatis.generator.config.GeneratedKey.<init>()
方法的一些代码示例,展示了GeneratedKey.<init>()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。GeneratedKey.<init>()
方法的具体详情如下:
包路径:org.mybatis.generator.config.GeneratedKey
类名称:GeneratedKey
方法名:<init>
暂无
代码示例来源:origin: cxjava/mybatis-generator-core
private void parseGeneratedKey(TableConfiguration tc, Node node) {
Properties attributes = parseAttributes(node);
String column = attributes.getProperty("column"); //$NON-NLS-1$
boolean identity = isTrue(attributes.getProperty("identity")); //$NON-NLS-1$
String sqlStatement = attributes.getProperty("sqlStatement"); //$NON-NLS-1$
String type = attributes.getProperty("type"); //$NON-NLS-1$
GeneratedKey gk = new GeneratedKey(column, sqlStatement, identity, type);
tc.setGeneratedKey(gk);
}
代码示例来源:origin: roncoo/roncoo-mybatis-generator
private void parseGeneratedKey(TableConfiguration tc, Node node) {
Properties attributes = parseAttributes(node);
String column = attributes.getProperty("column"); //$NON-NLS-1$
boolean identity = isTrue(attributes
.getProperty("identity")); //$NON-NLS-1$
String sqlStatement = attributes.getProperty("sqlStatement"); //$NON-NLS-1$
String type = attributes.getProperty("type"); //$NON-NLS-1$
GeneratedKey gk = new GeneratedKey(column, sqlStatement, identity, type);
tc.setGeneratedKey(gk);
}
代码示例来源:origin: org.mybatis.generator/mybatis-generator-core
private void parseGeneratedKey(TableConfiguration tc, Node node) {
Properties attributes = parseAttributes(node);
String column = attributes.getProperty("column"); //$NON-NLS-1$
boolean identity = isTrue(attributes
.getProperty("identity")); //$NON-NLS-1$
String sqlStatement = attributes.getProperty("sqlStatement"); //$NON-NLS-1$
String type = attributes.getProperty("type"); //$NON-NLS-1$
GeneratedKey gk = new GeneratedKey(column, sqlStatement, identity, type);
tc.setGeneratedKey(gk);
}
代码示例来源:origin: roncoo/roncoo-mybatis-generator
private void parseGeneratedKey(TableConfiguration tc, Node node) {
Properties attributes = parseAttributes(node);
String column = attributes.getProperty("column"); //$NON-NLS-1$
boolean identity = isTrue(attributes
.getProperty("identity")); //$NON-NLS-1$
String sqlStatement = attributes.getProperty("sqlStatement"); //$NON-NLS-1$
String type = attributes.getProperty("type"); //$NON-NLS-1$
GeneratedKey gk = new GeneratedKey(column, sqlStatement, identity, type);
tc.setGeneratedKey(gk);
}
代码示例来源:origin: handosme/mybatis-generator-plus
private void parseGeneratedKey(TableConfiguration tc, Node node) {
Properties attributes = parseAttributes(node);
String column = attributes.getProperty("column"); //$NON-NLS-1$
boolean identity = isTrue(attributes
.getProperty("identity")); //$NON-NLS-1$
String sqlStatement = attributes.getProperty("sqlStatement"); //$NON-NLS-1$
String type = attributes.getProperty("type"); //$NON-NLS-1$
GeneratedKey gk = new GeneratedKey(column, sqlStatement, identity, type);
tc.setGeneratedKey(gk);
}
代码示例来源:origin: handosme/mybatis-generator-plus
private void parseGeneratedKey(TableConfiguration tc, Node node) {
Properties attributes = parseAttributes(node);
String column = attributes.getProperty("column"); //$NON-NLS-1$
boolean identity = isTrue(attributes
.getProperty("identity")); //$NON-NLS-1$
String sqlStatement = attributes.getProperty("sqlStatement"); //$NON-NLS-1$
String type = attributes.getProperty("type"); //$NON-NLS-1$
GeneratedKey gk = new GeneratedKey(column, sqlStatement, identity, type);
tc.setGeneratedKey(gk);
}
代码示例来源:origin: cxjava/mybatis-generator-core
private void parseGeneratedKey(TableConfiguration tc, Node node) {
Properties attributes = parseAttributes(node);
String column = attributes.getProperty("column"); //$NON-NLS-1$
boolean identity = isTrue(attributes.getProperty("identity")); //$NON-NLS-1$
String sqlStatement = attributes.getProperty("sqlStatement"); //$NON-NLS-1$
String type = attributes.getProperty("type"); //$NON-NLS-1$
GeneratedKey gk = new GeneratedKey(column, sqlStatement, identity, type);
tc.setGeneratedKey(gk);
}
代码示例来源:origin: huzhicheng/kite-mybatis-builder
private void importTableList(String tableList,String entityList,Context context){
String[] tableArray = tableList.split(",");
String[] entityArray = entityList.split(",");
for(int i = 0;i<tableArray.length;i++){
TableConfiguration t = new TableConfiguration(context);
t.setSchema("root");
t.setTableName(tableArray[i]);
t.setDomainObjectName(entityArray[i]);
t.addProperty("useActualColumnNames","false");
t.setGeneratedKey(new GeneratedKey("id","MySql",true,"post"));
context.addTableConfiguration(t);
}
}
代码示例来源:origin: MarkGao11520/acmen-helper
tableConfiguration.setDomainObjectName(modelName);
tableConfiguration.setGeneratedKey(new GeneratedKey("id", "Mysql", true, null));
context.addTableConfiguration(tableConfiguration);
代码示例来源:origin: jeesun/oauthserver
tableConfiguration.setDomainObjectName(modelName);
tableConfiguration.setGeneratedKey(new GeneratedKey("id", "Mysql", true, null));
内容来源于网络,如有侵权,请联系作者删除!