|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Target(value={TYPE,FIELD,METHOD}) @Retention(value=RUNTIME) public @interface PrimaryKey
Annotation on a member to define it as a primary key member of a class or persistent interface using application identity. Also used to define the primary key columns of a secondary table. Corresponds to the xml element "primary-key".
Optional Element Summary | |
---|---|
java.lang.String |
column
Name of the column to use for the primary key |
Column[] |
columns
The column(s) for the primary key |
java.lang.String |
name
Name of the primary key constraint |
public abstract java.lang.String name
public abstract java.lang.String column
public abstract Column[] columns
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |