| Modifier and Type | Required Element and Description |
|---|---|
String |
value
显式指定表名称。
|
| Modifier and Type | Optional Element and Description |
|---|---|
boolean |
camelToUnderline
默认为 驼峰属性 转换为 下划线字段。
|
String |
comment
数据库表注释,在 AI 时代,注释的内容往往可用于 AI 辅助对话
|
String |
dataSource
默认使用哪个数据源,若系统找不到该指定的数据源时,默认使用第一个数据源。
|
boolean |
mapperGenerateEnable
在某些场景下,我们需要手动编写 Mapper,可以通过这个注解来关闭 APT 的 Mapper 生成。
|
Class<? extends InsertListener>[] |
onInsert
监听 entity 的 insert 行为。
|
Class<? extends SetListener>[] |
onSet
监听 entity 的查询数据的 set 行为,用户主动 set 不会触发。
|
Class<? extends UpdateListener>[] |
onUpdate
监听 entity 的 update 行为。
|
String |
schema
数据库的 schema(模式)。
|
public abstract String value
public abstract String schema
public abstract String dataSource
public abstract String comment
public abstract Class<? extends InsertListener>[] onInsert
public abstract Class<? extends UpdateListener>[] onUpdate
public abstract Class<? extends SetListener>[] onSet
Copyright © 2024. All rights reserved.