About primary key

111-120 of 200Refresh
JPA Doc
6

javax.persistence.Column

. This constraint applies in addition to any constraint entailed by primary key mapping and to constraints ... of the table that contains the column. If absent the column is assumed to be in the primary table. Default value: "" Since: JPA 1.0 boolean unique (Optional) Whether the column is a unique key. (Optional
JDO Doc
5

jdoNewObjectIdInstance()

, this method must be called on an instance of a persistence-capable class with its primary key field ... with the value(s) of the primary key field(s) of the instance on which the method is called. Returns: the new instance created. Since: JDO 1.0 ... of the ObjectId class for this PersistenceCapable class and initialize the key fields from the instance
Forum
5

Index on map key

Is there a way to create an Index with @Index on the key of a map? Indexes on map keys as well as queries on map keys are currently not supported. But as a workaround you can use a collection ... ();         Query query = em.createQuery(             "SELECT o FROM MyEntity o JOIN o.map e WHERE e.key
JPA Doc
5

SecondaryTable.pkJoinColumns

Annotation Element javax.persistence.SecondaryTable PrimaryKeyJoinColumn[] pkJoinColumns (Optional) The columns that are used to join with the primary table. Defaults to the column(s) of the same name(s) as the primary key column(s) in the primary table. Default value: {} Since: JPA 1.0
JPA Doc
5

JoinColumn.referencedColumnName

the primary key column of the referenced table. Default value: "" Since: JPA 1.0 ... of the column referenced by this foreign key column. When used with entity relationship mappings ... with a unidirectional OneToMany foreign key mapping, the referenced column is in the table
JPA Doc
5

JoinColumn.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 is only a single field. It is not necessary to explicitly specify this for a join column that corresponds to a primary key that is part of a foreign key. Default value: false Since: JPA 1.0
JPA Doc
5

MapKeyColumn.table

relationship using a foreign key mapping strategy, the name of the primary table of the entity that is the value of the map. Default value: "" Since: JPA 2.0 ... that contains the column. Defaults: If the map key is for an element collection, the name of the collection table for the map value. If the map key is for a OneToMany or ManyToMany entity relationship
Issue
5

Eager Fetch of Map with Entities as Keys

Loading eagerly a map that uses entity objects as keys is currently unsupported, if the equals and hashCode methods of the keys are based on the key entity persistent content, since that content ... ();         MyKeyEntity key = new MyKeyEntity("key");         em.persist(key);         entity.map
JPA Doc
5

CollectionTable.joinColumns

Annotation Element javax.persistence.CollectionTable JoinColumn[] joinColumns (Optional) The foreign key columns of the collection table which reference the primary table of the entity. The default ... ., the concatenation of the following: the name of the entity; "_"; the name of the referenced primary key
JPA Doc
5

GeneratedValue.strategy

Annotation Element javax.persistence.GeneratedValue GenerationType strategy (Optional) The primary key generation strategy that the persistence provider must use to generate the annotated entity primary key. Default value: javax.persistence.GenerationType.AUTO Since: JPA 1.0