|
Oracle Fusion Middleware Java API Reference for Oracle TopLink 11g Release 1 (11.1.1) E28847-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Target(value=TYPE)
@Retention(value=RUNTIME)
public @interface PrimaryKey
The PrimaryKey annotation allows advanced configuration of the Id. A validation policy can be given that allows specifying if zero is a valid id value. The set of primary key columns can also be specified precisely.
Optional Element Summary | |
---|---|
CacheKeyType |
cacheKeyType (Optional) Configures what cache key type is used to store the object in the cache. |
javax.persistence.Column[] |
columns (Optional) Used to specify the primary key columns directly. |
IdValidation |
validation (Optional) Configures what id validation is done. |
public abstract IdValidation validation
public abstract CacheKeyType cacheKeyType
public abstract javax.persistence.Column[] columns
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |