About primary key

71-80 of 200Refresh
JDO Doc
18

Key.indexed

Annotation Element javax.jdo.annotations.Key String indexed Whether the value column(s) should be indexed. Returns: whether the value column(s) should be indexed. Default value: "" Since: JDO 2.1
JDO Doc
18

Key.unique

Annotation Element javax.jdo.annotations.Key String unique Whether the element column(s) contents should be considered unique Returns: whether the element column(s) contents should be considered unique Default value: "" Since: JDO 2.1
JDO Doc
17

javax.jdo.annotations.PrimaryKey

get methods) 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". Since: JDO 2.1 String column Name of the column to use
Manual
17

Detached Entity Objects

. same type and primary key). If the EntityManager does not manage such an entity object yet a new
JPA Doc
17

JPA Exceptions

) . For example, if a transaction fails because of an attempt to store a new entity object with a primary key that is already in use by another existing entity object, the nested exception is: Other common
Manual
17

Storing JPA Entity Objects

already contains another entity of the same type with the same primary key, an EntityExistsException
Manual
17

Comparison in JPQL and Criteria API

have the same type and the same primary key value. For embeddable objects, e1 = e2 if e1 and e2 have exactly
Manual
17

Shared (L2) Entity Cache

type and primary key: em.find(MyEntity2.class, Long.valueOf(1),      Collections.
Manual
17

JPA Metamodel API

on the primary key and the version attributes and the super type. For example: // Get the super type
JPA Doc
17

javax.persistence.JoinColumn

field of the referencing entity or embeddable class; "_"; the name of the referenced primary key ... : the name of the entity; "_"; the name of the referenced primary key column. Default value ... the collection. Default (only applies if single join column is being used): The same name as the primary key