本文整理了Java中org.mybatis.generator.config.JDBCConnectionConfiguration.addProperty()
方法的一些代码示例,展示了JDBCConnectionConfiguration.addProperty()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JDBCConnectionConfiguration.addProperty()
方法的具体详情如下:
包路径:org.mybatis.generator.config.JDBCConnectionConfiguration
类名称: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");
}
内容来源于网络,如有侵权,请联系作者删除!