@Target(value={ANNOTATION_TYPE,FIELD,METHOD}) @Retention(value=RUNTIME) public @interface Element
Modifier and Type | Optional Element and Description |
---|---|
String |
column
Name of the column to store the element in.
|
Column[] |
columns
The column(s) for the element.
|
Class<? extends AttributeConverter> |
converter
Optional
AttributeConverter to use for converting this element. |
ForeignKeyAction |
deleteAction
Delete action to apply to any foreign key for the element.
|
String |
dependent
Whether the element is dependent on the owner, and will be deleted
when the owner is deleted.
|
String |
embedded
Whether this element is embedded.
|
Embedded[] |
embeddedMapping
The embedded mapping for the element.
|
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 the member in the target class that forms a bidirectional
relationship with this member.
|
String |
serialized
Whether the element is to be stored serialized (into a join table)
|
String |
table
Name of the table for the element.
|
Class[] |
types
Types of the elements.
|
String |
unique
Whether a unique constraint should be generated or assumed.
|
String |
uniqueKey
The name of the unique key constraint to generate.
|
ForeignKeyAction |
updateAction
Update action to apply to any foreign key for the element
|
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 element.public abstract boolean useDefaultConversion
public abstract Extension[] extensions
Copyright © 2005–1970 Apache Software Foundation. All rights reserved.