@Target({FIELD,METHOD})
@Retention(RUNTIME)
public @interface Element
Modifier and Type | Optional Element | Description |
---|---|---|
java.lang.String |
column |
Name of the column to store the element in.
|
Column[] |
columns |
The column(s) for the element.
|
ForeignKeyAction |
deleteAction |
Delete action to apply to any foreign key for the element.
|
java.lang.String |
dependent |
Whether the element is dependent on the owner, and will be deleted
when the owner is deleted.
|
java.lang.String |
embedded |
Whether this element is embedded.
|
Embedded[] |
embeddedMapping |
The embedded mapping for the element.
|
Extension[] |
extensions |
Vendor extensions.
|
java.lang.String |
foreignKey |
Name for a generated foreign key constraint.
|
java.lang.String |
generateForeignKey |
Generate or assume a foreign key constraint exists on the column
or columns associated with this join.
|
java.lang.String |
index |
The name of the index to generate.
|
java.lang.String |
indexed |
Whether the value column(s) should be indexed.
|
java.lang.String |
mappedBy |
Name of the member in the target class that forms a bidirectional
relationship with this member.
|
java.lang.String |
serialized |
Whether the element is to be stored serialized (into a join table)
|
java.lang.String |
table |
Name of the table for the element.
|
java.lang.Class[] |
types |
Types of the elements.
|
java.lang.String |
unique |
Whether a unique constraint should be generated or assumed.
|
java.lang.String |
uniqueKey |
The name of the unique key constraint to generate.
|
ForeignKeyAction |
updateAction |
Update action to apply to any foreign key for the element
|
java.lang.Class[] types
java.lang.String serialized
java.lang.String embedded
Embedded[] embeddedMapping
java.lang.String dependent
java.lang.String table
java.lang.String column
ForeignKeyAction deleteAction
ForeignKeyAction updateAction
java.lang.String indexed
java.lang.String index
java.lang.String unique
java.lang.String uniqueKey
java.lang.String mappedBy
Column[] columns
java.lang.String generateForeignKey
java.lang.String foreignKey
Extension[] extensions