Package de.mhus.lib.annotations.adb
Annotation Type DbIndex
-
@Retention(RUNTIME) public @interface DbIndex
Use this to add a list of indexes to a column. Use comma as separator. The simplest way to name the indexes is by numbers. If the index starts with an 'u' the index will be defined as an unique index. Do not name the index to long most database engines have restrictions about the length of an index name.- Author:
- mikehummel
-
-
Field Detail
-
UNIQUE
static final String UNIQUE
-
-
Element Detail
-
value
String[] value
-
-
-
type
DbIndex.TYPE type
- Default:
- de.mhus.lib.annotations.adb.DbIndex.TYPE.AUTO
-
-
-
hints
String hints
- Default:
- ""
-
-
-
fields
String[] fields
- Default:
- {}
-
-