@Target(value={ANNOTATION_TYPE,FIELD,METHOD}) @Retention(value=RUNTIME) public @interface Key
Modifier and Type | Optional Element and Description |
---|---|
String |
column
Name of the column to store the key in.
|
Column[] |
columns
The column(s) for the key
|
Class<? extends AttributeConverter> |
converter
Optional
AttributeConverter to use for converting this key. |
ForeignKeyAction |
deleteAction
Delete action to apply to the foreign key for the key.
|
String |
dependent
Whether the key is dependent on the owner (and will be deleted
when the owner is deleted).
|
String |
embedded
Whether this key is embedded.
|
Embedded[] |
embeddedMapping
The embedded mapping for the key.
|
Extension[] |
extensions
Vendor extensions.
|
String |
foreignKey
Name for a generated foreign key constraint.
|
String |
generateForeignKey
Generate or assume a foreign key constraint exists on the column
or columns associated with this join.
|
String |
index
The name of the index to generate.
|
String |
indexed
Whether the value column(s) should be indexed.
|
String |
mappedBy
Name of a member in the value class where this key is stored.
|
String |
serialized
Whether the key is to be stored serialized (into a single column of a
join table).
|
String |
table
Name of the table for the key.
|
Class[] |
types
Types of the keys.
|
String |
unique
Whether the element column(s) contents should be considered unique
|
String |
uniqueKey
The name of the unique key constraint to generate.
|
ForeignKeyAction |
updateAction
Update action to apply to the foreign key for the key.
|
boolean |
useDefaultConversion
Whether we should disable any converter that was specified as default for this type on the PMF.
|
public abstract Class[] types
public abstract String serialized
public abstract String embedded
public abstract Embedded[] embeddedMapping
public abstract String dependent
public abstract String table
public abstract String column
public abstract ForeignKeyAction deleteAction
public abstract ForeignKeyAction updateAction
public abstract String indexed
public abstract String index
public abstract String unique
public abstract String uniqueKey
public abstract String mappedBy
public abstract Column[] columns
public abstract String generateForeignKey
public abstract String foreignKey
public abstract Class<? extends AttributeConverter> converter
AttributeConverter
to use for converting this key.public abstract boolean useDefaultConversion
public abstract Extension[] extensions
Copyright © 2005–1970 Apache Software Foundation. All rights reserved.