public enum GeneratorType extends Enum<GeneratorType>
| 枚举常量和说明 |
|---|
AUTO
这个其实什么都不做,就是依赖数据库自动增长
|
CONSTANT
常量 , 保存在value中
|
FUNCTION
函数,比如 当前日期
这个调用compiler中的表达式运行,可以将同一个对象中的其他字段作为参数
|
SEQUENCE
数据库序列, 序列名称保存在value中
|
UUID
uuid 32bit
|
public static final GeneratorType AUTO
public static final GeneratorType SEQUENCE
public static final GeneratorType UUID
public static final GeneratorType CONSTANT
public static final GeneratorType FUNCTION
public static GeneratorType[] values()
for (GeneratorType c : GeneratorType.values()) System.out.println(c);
public static GeneratorType valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值Copyright © 2018 江苏南大先腾信息产业股份有限公司. All rights reserved.