| Modifier and Type | Optional Element and Description |
|---|---|
String |
afterSql
主键策略2,优先级2:取主键的 SQL,当前SQL只能在 INSERT 语句执行后执行,如果想要在 INSERT 语句执行前执行,可以使用
genId() |
Class<? extends GenId> |
genId
主键策略3,优先级3:Java 方式生成主键,可以和发号器一类的服务配合使用
|
boolean |
genIdExecuteBefore
执行 genId 的时机,仅当
genId() 不为空时有效,默认插入前执行 |
boolean |
id
标记字段是否为主键字段
|
boolean |
insertable
可插入
|
org.apache.ibatis.type.JdbcType |
jdbcType
数据库类型 {, jdbcType=VARCHAR}
|
String |
numericScale
小数位数 {, numericScale=2}
|
String |
orderBy
排序方式,默认空时不作为排序字段,只有手动设置 ASC 和 DESC 才有效
|
int |
orderByPriority
排序的优先级,多个排序字段时,根据该值确定顺序,数值越小优先级越高
|
Entity.Prop[] |
props
属性配置
|
String |
remark
备注,仅用于在注解上展示,不用于任何其他处理
|
boolean |
selectable
可查询
|
Class<? extends org.apache.ibatis.type.TypeHandler> |
typeHandler
类型处理器 {, typeHandler=XXTypeHandler}
|
boolean |
updatable
可更新
|
boolean |
useGeneratedKeys
主键策略1,优先级1:是否使用 JDBC 方式获取主键,优先级最高,设置为 true 后,不对其他配置校验
|
String |
value
列名,默认空时使用字段名(不进行任何转换)
|
public abstract String value
public abstract String remark
public abstract boolean useGeneratedKeys
public abstract boolean genIdExecuteBefore
genId() 不为空时有效,默认插入前执行public abstract String orderBy
public abstract org.apache.ibatis.type.JdbcType jdbcType
public abstract Class<? extends org.apache.ibatis.type.TypeHandler> typeHandler
public abstract String numericScale
public abstract Entity.Prop[] props
Copyright © 2022. All rights reserved.