public class IdInfo extends ColumnInfo
| 限定符和类型 | 字段和说明 |
|---|---|
private Boolean |
before
sequence 序列内容执行顺序
|
private com.mybatisflex.annotation.KeyType |
keyType
id 生成策略
|
private String |
value
1、若 keyType 类型是 sequence, value 则代表的是
sequence 序列的 sql 内容
例如:select SEQ_USER_ID.nextval as id from dual
2、若 keyType 是 Generator,value 则代表的是使用的那个 keyGenerator 的名称
|
column, jdbcType, maskType, property, propertyType, typeHandler| 构造器和说明 |
|---|
IdInfo(ColumnInfo columnInfo) |
IdInfo(String column,
String property,
Class<?> propertyType,
com.mybatisflex.annotation.Id id) |
| 限定符和类型 | 方法和说明 |
|---|---|
Boolean |
getBefore() |
com.mybatisflex.annotation.KeyType |
getKeyType() |
String |
getValue() |
void |
setBefore(Boolean before) |
void |
setKeyType(com.mybatisflex.annotation.KeyType keyType) |
void |
setValue(String value) |
buildTypeHandler, getColumn, getJdbcType, getMaskType, getProperty, getPropertyType, setColumn, setJdbcType, setMaskType, setProperty, setPropertyType, setTypeHandlerprivate com.mybatisflex.annotation.KeyType keyType
private String value
2、若 keyType 是 Generator,value 则代表的是使用的那个 keyGenerator 的名称
public IdInfo(ColumnInfo columnInfo)
public com.mybatisflex.annotation.KeyType getKeyType()
public void setKeyType(com.mybatisflex.annotation.KeyType keyType)
Copyright © 2023. All rights reserved.