@Target({FIELD,METHOD})
@Retention(RUNTIME)
public @interface Column
Modifier and Type | Optional Element | Description |
---|---|---|
java.lang.String |
allowsNull |
Whether the column allows null values to be inserted.
|
java.lang.String |
defaultValue |
Default value for this column.
|
Extension[] |
extensions |
Vendor extensions.
|
java.lang.String |
insertValue |
Value to be inserted when this is an "unmapped" column
|
java.lang.String |
jdbcType |
JDBC Type for this column.
|
int |
length |
Maximum length of data stored in this column.
|
java.lang.String |
name |
Name of the column.
|
int |
scale |
Scale for the column when handling floating point values.
|
java.lang.String |
sqlType |
SQL Type for this column.
|
java.lang.String |
target |
Target column for this column in the other table when part of a
foreign key relation.
|
java.lang.String |
targetMember |
Target member in the other class or interface for this column
when part of a bidirectional relation.
|
java.lang.String name
java.lang.String target
java.lang.String targetMember
java.lang.String jdbcType
java.lang.String sqlType
int length
int scale
java.lang.String allowsNull
java.lang.String defaultValue
java.lang.String insertValue
Extension[] extensions