public enum NamingStrategy extends Enum<NamingStrategy>
| Enum Constant and Description |
|---|
nochange
不做任何改变,原样输出
|
remove_prefix
仅去掉前缀
|
remove_prefix_and_camel
去掉前缀并且转驼峰
|
underline_to_camel
下划线转驼峰命名
|
| Modifier and Type | Method and Description |
|---|---|
static String |
capitalFirst(String name)
实体首字母大写
|
static String |
removePrefix(String name)
去掉下划线前缀
|
static String |
removePrefix(String name,
String prefix)
去掉指定的前缀
|
static String |
removePrefixAndCamel(String name,
String tablePrefix)
去掉下划线前缀且将后半部分转成驼峰格式
|
static String |
underlineToCamel(String name) |
static NamingStrategy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static NamingStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NamingStrategy nochange
public static final NamingStrategy underline_to_camel
public static final NamingStrategy remove_prefix
public static final NamingStrategy remove_prefix_and_camel
public static NamingStrategy[] values()
for (NamingStrategy c : NamingStrategy.values()) System.out.println(c);
public static NamingStrategy valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static String removePrefix(String name, String prefix)
name - prefix - public static String removePrefixAndCamel(String name, String tablePrefix)
name - tablePrefix - Copyright © 2019. All rights reserved.