org.mybatis.generator.config.TableConfiguration.setGeneratedKey()方法的使用及代码示例

x33g5p2x  于2022-01-30 转载在 其他  
字(5.2k)|赞(0)|评价(0)|浏览(122)

本文整理了Java中org.mybatis.generator.config.TableConfiguration.setGeneratedKey()方法的一些代码示例,展示了TableConfiguration.setGeneratedKey()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。TableConfiguration.setGeneratedKey()方法的具体详情如下:
包路径:org.mybatis.generator.config.TableConfiguration
类名称:TableConfiguration
方法名:setGeneratedKey

TableConfiguration.setGeneratedKey介绍

暂无

代码示例

代码示例来源: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));

相关文章

微信公众号

最新文章

更多

TableConfiguration类方法