About primary key

91-100 of 200Refresh
JPA Doc
13

javax.persistence.MapKeyColumn

applies in addition to any constraint entailed by primary key mapping and to constraints specified ... the mapping for the key column of a map whose map key is a basic type. If the name element is not ... relationship field or property; "_"; "KEY". Example: @Entity public class Item { @Id int id
JPA Doc
13

javax.persistence.GenerationType

, Comparable Defines the types of primary key generation strategies. Since: JPA 1.0 ... must assign primary keys for the entity using a database identity column. Indicates that the persistence provider must assign primary keys for the entity using a database identity column. Since: JPA 1.0
JDO Doc
13

javax.jdo.annotations.ForeignKey

. This is needed iff annotating a type where the foreign key is not defined on the primary table ... get methods) Annotation for a database foreign-key. Corresponds to the xml element "foreign-key". Since: JDO 2.1 Column[] columns Columns that compose this foreign key. Columns that compose this foreign key
Forum
13

Can a Set<E> be a foreign key?

I have two classes, Cell and Character.  Basically, the cell is like a room, and contains a variable (private Set cellHeldCharacters;) which holds the IDs of the characters within the cell (The IDs are Primary Keys).  Can I use the Foreign Key annotation for the variable, or is it illegal
JDO Doc
12

javax.jdo.annotations.Persistent

Since: JDO 2.1 String primaryKey Whether this member is part of the primary key for application identity. Whether this member is part of the primary key for application identity. This is equivalent ... is part of the primary key Default value: "" Since: JDO 2.1 int recursionDepth Recursion depth
JPA Doc
12

javax.persistence.SequenceGenerator

get methods) Defines a primary key generator that may be referenced by name when a generator element ... class or on the primary key field or property. The scope of the generator name is global ... to be the generator for primary key values. (Required) A unique generator name that can be referenced by
JPA Doc
12

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
JDO Doc
11

javax.jdo.spi.JDOImplHelper

has no relationship with the values of the primary key fields of the persistence-capable instance ... - the PersistenceCapable class used as the key for lookup. fieldNames - an array of String field names ... to an outside source from the key fields in the ObjectId. Copy fields to an outside source from
JPA Doc
11

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
11

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