Java Code Examples for com.baomidou.mybatisplus.generator.config.rules.NamingStrategy#underlineToCamel()

The following examples show how to use com.baomidou.mybatisplus.generator.config.rules.NamingStrategy#underlineToCamel() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: CodeGenerator.java    From supplierShop with MIT License 4 votes vote down vote up
public static String underlineToCamel(String underline){
    if (StringUtils.isNotBlank(underline)){
        return NamingStrategy.underlineToCamel(underline);
    }
    return null;
}
 
Example 2
Source File: CodeGenerator.java    From spring-boot-plus with Apache License 2.0 3 votes vote down vote up
/**
 * 下划线专程驼峰命名
 * sys_user --> sysUser
 *
 * @param underline
 * @return
 */
public static String underlineToCamel(String underline) {
    if (StringUtils.isNotBlank(underline)) {
        return NamingStrategy.underlineToCamel(underline);
    }
    return null;
}