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

x33g5p2x  于2022-01-22 转载在 其他  
字(2.9k)|赞(0)|评价(0)|浏览(111)

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

JDBCConnectionConfiguration.addProperty介绍

暂无

代码示例

代码示例来源:origin: abel533/Mapper

@Override
public void setContext(Context context) {
  super.setContext(context);
  //设置默认的注释生成器
  useMapperCommentGenerator = !"FALSE".equalsIgnoreCase(context.getProperty("useMapperCommentGenerator"));
  if (useMapperCommentGenerator) {
    commentCfg = new CommentGeneratorConfiguration();
    commentCfg.setConfigurationType(MapperCommentGenerator.class.getCanonicalName());
    context.setCommentGeneratorConfiguration(commentCfg);
  }
  //支持oracle获取注释#114
  context.getJdbcConnectionConfiguration().addProperty("remarksReporting", "true");
  //支持mysql获取注释
  context.getJdbcConnectionConfiguration().addProperty("useInformationSchema", "true");
}

代码示例来源:origin: abel533/Mapper

@Override
public void setContext(Context context) {
  super.setContext(context);
  //设置默认的注释生成器
  useMapperCommentGenerator = !"FALSE".equalsIgnoreCase(context.getProperty("useMapperCommentGenerator"));
  if (useMapperCommentGenerator) {
    commentCfg = new CommentGeneratorConfiguration();
    commentCfg.setConfigurationType(MapperCommentGenerator.class.getCanonicalName());
    context.setCommentGeneratorConfiguration(commentCfg);
  }
  //支持oracle获取注释#114
  context.getJdbcConnectionConfiguration().addProperty("remarksReporting", "true");
  //支持mysql获取注释
  context.getJdbcConnectionConfiguration().addProperty("useInformationSchema", "true");
}

代码示例来源:origin: tk.mybatis/mapper-generator

@Override
public void setContext(Context context) {
  super.setContext(context);
  //设置默认的注释生成器
  useMapperCommentGenerator = !"FALSE".equalsIgnoreCase(context.getProperty("useMapperCommentGenerator"));
  if (useMapperCommentGenerator) {
    commentCfg = new CommentGeneratorConfiguration();
    commentCfg.setConfigurationType(MapperCommentGenerator.class.getCanonicalName());
    context.setCommentGeneratorConfiguration(commentCfg);
  }
  //支持oracle获取注释#114
  context.getJdbcConnectionConfiguration().addProperty("remarksReporting", "true");
  //支持mysql获取注释
  context.getJdbcConnectionConfiguration().addProperty("useInformationSchema", "true");
}

代码示例来源:origin: vakinge/jeesuite-libs

@Override
public void setContext(Context context) {
  super.setContext(context);
  //设置默认的注释生成器
  commentCfg = new CommentGeneratorConfiguration();
  commentCfg.setConfigurationType(MapperCommentGenerator.class.getCanonicalName());
  context.setCommentGeneratorConfiguration(commentCfg);
  //支持oracle获取注释#114
  context.getJdbcConnectionConfiguration().addProperty("remarksReporting", "true");
}

相关文章