JDO Annotation

Column

Target: ElementType.FIELD, ElementType.METHOD
Implemented Interfaces:
Annotation

Annotation for a column in the database. Corresponds to the xml element "column".
Since:
JDO 2.1

Public Annotation Attributes

String allowsNull default ""
Whether the column allows null values to be inserted.
Since:
JDO 2.1
String defaultValue default ""
Default value for this column.
Since:
JDO 2.1
Extension[] extensions default {}
Vendor extensions.
Since:
JDO 2.1
String insertValue default ""
Value to be inserted when this is an "unmapped" column
Since:
JDO 2.1
String jdbcType default ""
JDBC Type for this column.
Since:
JDO 2.1
int length default -1
Maximum length of data stored in this column.
Since:
JDO 2.1
String name default ""
Name of the column.
Since:
JDO 2.1
int scale default -1
Scale for the column when handling floating point values.
Since:
JDO 2.1
String sqlType default ""
SQL Type for this column.
Since:
JDO 2.1
String target default ""
Target column for this column in the other table when part of a foreign key relation.
Since:
JDO 2.1
String targetMember default ""
Target member in the other class or interface for this column when part of a bidirectional relation.
Since:
JDO 2.1