Home » Search

About primary key

71-80 of 200Refresh
Manual
13

Comparison in JPQL and Criteria API

have the same type and the same primary key value. For embeddable objects, e1 = e2 if e1 and e2 have exactly
Manual
13

Detached Entity Objects

. same type and primary key). If the EntityManager does not manage such an entity object yet a new
JPA Doc
13

JPA Exceptions

) . For example, if a transaction fails because of an attempt to store a new entity object with a primary key that is already in use by another existing entity object, the nested exception is: Other common
Manual
13

JPA Metamodel API

in a type safe manner. The IdentifiableType adds methods for retrieving information on the primary key and the version attributes and the super type. For example: // Get the super type
Manual
13

Shared (L2) Entity Cache

and primary key: em.find(MyEntity2.class, Long.valueOf(1),      Collections.
Manual
13

Storing JPA Entity Objects

already contains another entity of the same type with the same primary key, an EntityExistsException
JPA Doc
12

javax.persistence.SecondaryTable

. If no primary key join columns are specified, the join columns are assumed to reference the primary key columns of the primary table, and have the same names and types as the referenced primary key columns of the primary table. Example 1: Single secondary table with a single primary key column. @Entity
JPA Doc
12

javax.persistence.GeneratedValue

) Provides for the specification of generation strategies for the values of primary keys. The GeneratedValue annotation may be applied to a primary key property or field of an entity or mapped superclass in ... to be supported for simple primary keys. Use of the GeneratedValue annotation is not supported for derived
JPA Doc
12

javax.persistence.MapKey

the map key for associations of type java.util.Map when the map key is itself the primary key or ... other than the primary key is used as a map key then it is expected to have a uniqueness constraint ... ="department") @MapKey // map key is primary key public Map getEmployees
JPA Doc
12

javax.persistence.MapKeyJoinColumn

. Default (only applies if single join column is being used.) The same name as the primary key column ... ) Specifies a mapping to an entity that is a map key. The map key join column is in the collection table ... (Optional) The name of the foreign key column for the map key. (Optional) The name of the foreign key