Codota Logo
GlobalConfiguration.setDbColumnUnderline
Code IndexAdd Codota to your IDE (free)

How to use
setDbColumnUnderline
method
in
com.baomidou.mybatisplus.entity.GlobalConfiguration

Best Java code snippets using com.baomidou.mybatisplus.entity.GlobalConfiguration.setDbColumnUnderline (Showing top 5 results out of 315)

  • Common ways to obtain GlobalConfiguration
private void myMethod () {
GlobalConfiguration g =
  • Codota Iconnew GlobalConfiguration()
  • Smart code suggestions by Codota
}
origin: 5-Ason/ason-spring-cloud

@Bean(name = "basisGlobalConfig")
public GlobalConfiguration globalConfig(
    @Value("${mybatisPlus.globalConfig.idType}") Integer idType, //主键类型  0:"数据库ID自增", 1:"用户输入ID",2:"全局唯一ID (数字类型唯一ID)", 3:"全局唯一ID UUID";
    @Value("${mybatisPlus.globalConfig.dbColumnUnderline}") Boolean dbColumnUnderline, //驼峰下划线转换
    @Value("${mybatisPlus.globalConfig.isCapitalMode}") Boolean isCapitalMode //数据库大写下划线转换
) {
  log.info("初始化GlobalConfiguration");
  GlobalConfiguration globalConfig = new GlobalConfiguration();
  // 主键类型
  if ( !BlankUtil.isBlank(idType)) {
    globalConfig.setIdType(idType);
  }
  // 驼峰下划线转换
  if ( !BlankUtil.isBlank(dbColumnUnderline)) {
    globalConfig.setDbColumnUnderline(dbColumnUnderline);
  }
  // 数据库大写下划线转换
  if ( !BlankUtil.isBlank(isCapitalMode)) {
    globalConfig.setCapitalMode(isCapitalMode);
  }
  return globalConfig;
}
origin: huangjian888/jeeweb-mybatis-springboot

config.setLogicNotDeleteValue("0");
config.setDbType("mysql");
config.setDbColumnUnderline(true);
config.setSqlInjector(new AutoSqlInjector());
config.setMetaObjectHandler(new BaseMetaObjectHandler());
origin: MIYAOW/MI-S

globalConfig.setDbColumnUnderline(true);
globalConfig.setDbType(DBType.MYSQL.name());
origin: com.baomidou/mybatisplus-spring-boot-starter

globalConfiguration.setDbColumnUnderline(this.getDbColumnUnderline());
origin: imhuzi/mybatis-plus-sharding-jdbc-spring-boot-starter

globalConfiguration.setDbColumnUnderline(this.getDbColumnUnderline());
com.baomidou.mybatisplus.entityGlobalConfigurationsetDbColumnUnderline

Popular methods of GlobalConfiguration

  • <init>
  • setIdType
  • setSqlInjector
  • setCapitalMode
  • setDbType
  • setLogicDeleteValue
  • setLogicNotDeleteValue
  • setMetaObjectHandler
  • setFieldStrategy
  • setIdentifierQuote
  • setKeyGenerator
  • setRefresh
  • setKeyGenerator,
  • setRefresh,
  • setSqlParserCache

Popular in Java

  • Start an intent from android
  • startActivity (Activity)
  • notifyDataSetChanged (ArrayAdapter)
  • onCreateOptionsMenu (Activity)
  • BufferedReader (java.io)
    Reads text from a character-input stream, buffering characters so as to provide for the efficient re
  • BigInteger (java.math)
    Immutable arbitrary-precision integers. All operations behave as if BigIntegers were represented in
  • Notification (javax.management)
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement.A servlet is a small Java program that runs within
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now