| 限定符和类型 | 可选元素和说明 |
|---|---|
GeneratorCondition |
condition
生成条件 IFNULL 数值为空时生成 ALWAYS 总是生成,会覆盖已有的值
|
GeneratorTime |
occasion
数值生成时机 NEW (insert) UPDATE (update) READ (select)
|
GeneratorType |
strategy
数值生成方式
Auto 数据库自动增长、 SEQUENCE 序列 value中保存序列名称 、
UUID 、 CONSTANT 常量 value中保存常量、
FUNCTION 公式 value中保存公式,是一个四则运算表达式,可以通过变量引用这个对象的其他属性
|
String |
value
具体生成参数 对应 GeneratorType 不同有不用的意思
|
public abstract GeneratorType strategy
public abstract GeneratorTime occasion
public abstract GeneratorCondition condition
public abstract String value
Copyright © 2025 江苏南大先腾信息产业股份有限公司. All rights reserved.