About primary key

121-130 of 200Refresh
JPA Doc
8

javax.persistence.Id

the primary key of an entity. The field or property to which the Id annotation is applied ... .sql.Date; java.math.BigDecimal; java.math.BigInteger. The mapped column for the primary key of the entity is assumed to be the primary key of the primary table. If no Column annotation is specified
JPA Doc
7

MapKey.name

or property of the associated entity that is used as the map key. Default: If the name element is not specified, the primary key of the associated entity is used as the map key. If the primary key is a composite primary key and is mapped as IdClass, an instance of the primary key class is used as the key. Default value: "" Since: JPA 1.0
JPA Doc
7

javax.persistence.JoinTable

the primary table of the entity that does not own the association. (Optional) The foreign key columns ... which reference the primary table of the entity owning the association. (Optional) The foreign key columns ... of the join table is assumed to be the table names of the associated primary tables concatenated
JPA Doc
7

PrimaryKeyJoinColumn.name

of the primary key column of the current table. Defaults to the same name as the primary key column of the primary table of the superclass (JOINED mapping strategy); the same name as the primary key column of the primary table (SecondaryTable mapping); or the same name as the primary key column for the table
JPA Doc
7

PrimaryKeyJoinColumn.referencedColumnName

) The name of the primary key column of the table being joined to. Defaults to the same name as the primary key column of the primary table of the superclass (JOINED mapping strategy); the same name as the primary key column of the primary table (SecondaryTable mapping); or the same name as the primary
JPA Doc
7

javax.persistence.IdClass

javax.persistence Annotation IdClass Target: Classes Specifies a composite primary key class ... the primary key class and the primary key fields or properties of the entity must correspond ... value Primary key class Primary key class Since: JPA 1.0
JDO Doc
7

javax.jdo.annotations.Element

"false". Returns: whether to generate or assume a primary key constraint Default value: "" Since: JDO 2.1 ... to any foreign key for the element. Delete action to apply to any foreign key for the element. Returns: delete action to apply to any foreign key for the element Default value: javax.jdo.annotations
JPA Doc
7

JoinColumn.name

embeddable class; "_"; the name of the referenced primary key column. If there is no such referencing ... of the referenced primary key column. Default value: "" Since: JPA 1.0 ... Annotation Element javax.persistence.JoinColumn String name (Optional) The name of the foreign key
JPA Doc
7

find(entityClass, primaryKey)

by primary key. Search for an entity of the specified class and primary key. If the entity instance ... class primaryKey - primary key Returns: the found entity instance or null if the entity does not ... the second argument is is not a valid type for that entity’s primary key or is null Since: JPA 1.0
JPA Doc
7

find(entityClass, primaryKey, lockMode)

,   LockModeType lockMode ) Find by primary key and lock. Search for an entity of the specified class and primary key and lock it with respect to the specified lock type. If the entity instance is contained in ... primaryKey - primary key lockMode - lock mode Returns: the found entity instance or null if the entity