@Target(value={FIELD,METHOD,TYPE}) @Retention(value=RUNTIME) @Repeatable(value=Columns.class) public @interface Column
Modifier and Type | Optional Element and Description |
---|---|
String |
allowsNull
Whether the column allows null values to be inserted.
|
String |
defaultValue
Default value for this column.
|
Extension[] |
extensions
Vendor extensions.
|
String |
insertValue
Value to be inserted when this is an "unmapped" column
|
String |
jdbcType
JDBC Type for this column.
|
int |
length
Maximum length of data stored in this column.
|
String |
name
Name of the column.
|
int |
position
Position of this column in the table for this class (0=first, -1=unset).
|
int |
scale
Scale for the column when handling floating point values.
|
String |
sqlType
SQL Type for this column.
|
String |
target
Target column for this column in the other table when part of a
foreign key relation.
|
String |
targetMember
Target member in the other class or interface for this column
when part of a bidirectional relation.
|
public abstract String name
public abstract String target
public abstract String targetMember
public abstract String jdbcType
public abstract String sqlType
public abstract int length
public abstract int scale
public abstract String allowsNull
public abstract String defaultValue
public abstract String insertValue
public abstract Extension[] extensions
Copyright © 2005–1970 Apache Software Foundation. All rights reserved.