Home » Search

About primary key

151-160 of 200Refresh
JPA Doc
4

MapKeyJoinColumn.referencedColumnName

the primary key column of the referenced table Default value: "" Since: JPA 2.0 ... Annotation Element javax.persistence.MapKeyJoinColumn String referencedColumnName (Optional) The name of the column referenced by this foreign key column. The referenced column is in the table
JPA Doc
4

MapsId.value

Annotation Element javax.persistence.MapsId String value (Optional) The name of the attribute within the composite key to which the relationship attribute corresponds. If not supplied, the relationship maps the entity’s primary key. Default value: "" Since: JPA 2.0
Forum
4

em.flush(); em.clear(); loosing data and not persisting managed objects

that should fix this bug. This fix works except when the primary key is a string. Attached is my test code ... the length of primary keys, but large strings as demonstrated by this test should be avoided, if possible, because a primary key whose length is larger than about 45 bytes is much less efficient. I"m
Forum
4

Should derived fields of an EmbeddedId be manually maintained by app code?

If I have an Entity which has a primary key which is derived and I am implementing it using ... with an EmbeddedId where the containing Entity has a simple Primary Key, and a case which shows an Entity whose container has a Primary Key which is partly a Primary Key. 2) I have kept the Entity classes in
JPA Doc
3

contains(cls, primaryKey)

Method javax.persistence.Cache boolean contains(   Class cls,   Object primaryKey ) Whether the cache contains data for the given entity. Parameters: cls - entity class primaryKey - primary key Returns: boolean indicating whether the entity is in the cache Since: JPA 2.0
JPA Doc
3

evict(cls, primaryKey)

Method javax.persistence.Cache void evict(   Class cls,   Object primaryKey ) Remove the data for the given entity from the cache. Parameters: cls - entity class primaryKey - primary key Since: JPA 2.0
JPA Doc
3

GeneratedValue.generator

Annotation Element javax.persistence.GeneratedValue String generator (Optional) The name of the primary key generator to use as specified in the SequenceGenerator or TableGenerator annotation. Defaults to the id generator supplied by persistence provider. Default value: "" Since: JPA 1.0
JPA Doc
3

GenerationType.IDENTITY

Enum Constant javax.persistence.GenerationType IDENTITY Indicates that the persistence provider must assign primary keys for the entity using a database identity column. Since: JPA 1.0
JPA Doc
3

GenerationType.SEQUENCE

Enum Constant javax.persistence.GenerationType SEQUENCE Indicates that the persistence provider must assign primary keys for the entity using a database sequence. Since: JPA 1.0
JPA Doc
3

GenerationType.TABLE

Enum Constant javax.persistence.GenerationType TABLE Indicates that the persistence provider must assign primary keys for the entity using an underlying database table to ensure uniqueness. Since: JPA 1.0