@Retention(value=RUNTIME) @Target(value={}) public @interface IndexColumn
| Modifier and Type | Required Element and Description |
|---|---|
String |
value
需要索引的字段名称,注意是类字段的名称不是数据库字段名称。如果这里的字段名称写错了,导出SQL语句时会抛出找不到字段的异常。
Specifies the name of field to which the column mapped to be set as index。A field not found exception
will be thrown when exporting DDL if this value is incorrect.
|
| Modifier and Type | Optional Element and Description |
|---|---|
int |
length
指定索引长度
Specifies the length of index
|
public abstract String value
Copyright © 2019. All rights reserved.