@Documented @Target(value={FIELD,METHOD}) @Retention(value=RUNTIME) public @interface Column
Modifier and Type | Optional Element and Description |
---|---|
String |
collate |
String |
definition |
ForeignKey[] |
foreignKey |
boolean |
index |
int |
length |
String |
name |
boolean |
nullable |
boolean |
unique |
String |
value |
public abstract String name
public abstract boolean nullable
public abstract boolean unique
public abstract boolean index
Index
to define the index
options.public abstract String value
@Column(value = "now()")
protected Timestamp timestamp
public abstract String collate
public abstract String definition
public abstract ForeignKey[] foreignKey