Annotation Types Summary |
AutoIncrement |
Tags a specific method as representing a field who's value should be
auto-generated by the database in some sort of numeric sequence
(usually ascending order). |
Default |
Specifies a default value for the database field corresponding to
the tagged method. |
Ignore |
Marks a method as to be ignored by the schema generation engine. |
Indexed |
Marks the corresponding database field as requiring database indexing. |
NotNull |
Marks a specific field as to be constrained to non-NULL values within
the database. |
PrimaryKey |
Marks a method such that the corresponding database field will be
the primary key for the table in question. |
StringLength |
Explicitly specifies the maximum length, in characters, of the underlying
database column corresponding to the method in question. |
Table |
Used to specify a table name for an entity explicitly without resorting
to manual mappings in the table name converter. |
Unique |
Marks a method such that the corresponding database field will
have a UNIQUE constraint. |