About primary key

121-130 of 200Refresh
JPA Doc
5

getReference(entityClass, primaryKey)

- entity class primaryKey - primary key Returns: the found entity instance Throws ... a valid type for that entity’s primary key or is null EntityNotFoundException - if the entity state cannot be accessed Since: JPA 1.0
JPA Doc
5

javax.persistence.Cache

. Whether the cache contains data for the given entity. Parameters: cls - entity class primaryKey - primary key ... primaryKey - primary key Since: JPA 2.0 void evictAll() Clear the cache. Clear the cache. Since: JPA 2.0
JPA Doc
5

javax.persistence.SecondaryTables

javax.persistence Annotation SecondaryTables Target: Classes Specifies multiple secondary tables for an entity. Example 1: Multiple secondary tables assuming primary key columns are named the same in ... { ... } Example 2: Multiple secondary tables with differently named primary key columns. @Entity
JDO Doc
5

Join.generatePrimaryKey

Annotation Element javax.jdo.annotations.Join String generatePrimaryKey Generate or assume a primary key constraint exists on the column or columns associated with this join. Specify "true" or "false". Returns: whether to generate or assume a primary key constraint Default value: "" Since: JDO 2.1
JDO Doc
5

Join.primaryKey

Annotation Element javax.jdo.annotations.Join String primaryKey Name for a generated primary key constraint. Returns: the name of the generated primary key constraint Default value: "" Since: JDO 2.1
JDO Doc
5

Persistent.primaryKey

Annotation Element javax.jdo.annotations.Persistent String primaryKey Whether this member is part of the primary key for application identity. This is equivalent to specifying @PrimaryKey as a separate annotation on the member. Returns: whether this member is part of the primary key Default value: "" Since: JDO 2.1
JDO Doc
5

PrimaryKey.column

Annotation Element javax.jdo.annotations.PrimaryKey String column Name of the column to use for the primary key Returns: the name of the column to use for the primary key Default value: "" Since: JDO 2.1
JDO Doc
5

PrimaryKey.columns

Annotation Element javax.jdo.annotations.PrimaryKey Column[] columns The column(s) for the primary key Returns: the column(s) for the primary key Default value: {} Since: JDO 2.1
JDO Doc
5

PrimaryKey.name

Annotation Element javax.jdo.annotations.PrimaryKey String name Name of the primary key constraint Returns: the name of the primary key constraint Default value: "" Since: JDO 2.1
JPA Doc
5

TableGenerator.pkColumnValue

Annotation Element javax.persistence.TableGenerator String pkColumnValue (Optional) The primary key value in the generator table that distinguishes this set of generated values from others that may be stored in the table. Defaults to a provider-chosen value to store in the primary key column of the generator table Default value: "" Since: JPA 1.0