About primary key

141-150 of 200Refresh
JPA Doc
4

Column.unique

is a unique key. This is a shortcut for the UniqueConstraint annotation at the table level and is useful for when the unique key constraint corresponds to only a single column. This constraint applies in addition to any constraint entailed by primary key mapping and to constraints specified at the table level. Default value: false Since: JPA 1.0
JDO Doc
4

ForeignKey.table

Annotation Element javax.jdo.annotations.ForeignKey String table Table for the foreign key. This is needed iff annotating a type where the foreign key is not defined on the primary table for the type. Returns: the table on which the foreign key is defined Default value: "" Since: JDO 2.1
JDO Doc
4

jdoNewObjectIdInstance(o)

with the values of the primary key fields of the persistence-capable instance on which the method is called. If the key is the wrong class for the object id class, null is returned. For classes that use single ... instance of the class used for JDO identity, using the key constructor of the object id class
JPA Doc
4

MapKeyColumn.unique

is a unique key. This is a shortcut for the UniqueConstraint annotation at the table level and is useful for when the unique key constraint corresponds to only a single column. This constraint applies in addition to any constraint entailed by primary key mapping and to constraints specified at the table level. Default value: false Since: JPA 2.0
JDO Doc
4

newObjectIdInstance(pcClass, obj)

has no relationship with the values of the primary key fields of the persistence-capable instance on which the method is called. If the key is the wrong class for the object id class, null is returned ... ) Create a new instance of the class used by the parameter Class for JDO identity, using the key
JPA Doc
4

javax.persistence.Table

by primary key mappings. Defaults to no additional constraints. Default value: {} Since: JPA 1.0 ... javax.persistence Annotation Table Target: Classes Specifies the primary table for the annotated entity. Additional tables may be specified using SecondaryTable or SecondaryTables annotation
JDO Doc
4

Element.generateForeignKey

Annotation Element javax.jdo.annotations.Element String generateForeignKey Generate or assume a foreign 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
4

getObjectId(pc)

JDO vendors only for instances of persistence capable classes using application-managed (primary key ... the transaction, by the application modifying one or more of the application key fields
JPA Doc
4

javax.persistence.OneToOne

that assumes both the source and target share the same primary key values. // On Employee class ... embedded field or property. Example 1: One-to-one association that maps a foreign key column
JPA Doc
4

JoinColumn.table

that contains the column. If a table is not specified, the column is assumed to be in the primary table ... key mapping strategy, the name of the table of the source entity or embeddable. If the join is for a unidirectional OneToMany mapping using a foreign key mapping strategy, the name of the table