About PrimaryKey
JPA Primary Key
Explains how to define and use primary keys in JPA, including composite and embedded primary keys. Every entity object that is stored in the database has a primary key. Once assigned, the primary key cannot be modified. It represents the entity object as long as it exists in the database. As an object database, ObjectDB supports implicit o ...
getReference(entityClass, primaryKey)
Get an instance, whose state may be lazily fetched.(Method of javax.persistence.EntityManager)
find(entityClass, primaryKey, properties)
Find by primary key, using the specified properties.(Method of javax.persistence.EntityManager)
find(entityClass, primaryKey, lockMode)
Find by primary key and lock.(Method of javax.persistence.EntityManager)
evict(cls, primaryKey)
Remove the data for the given entity from the cache.(Method of javax.persistence.Cache)
contains(cls, primaryKey)
Whether the cache contains data for the given entity.(Method of javax.persistence.Cache)
Persistent.primaryKey
Whether this member is part of the primary key for application identity.(Annotation Element of javax.jdo.annotations.Persistent)
Join.primaryKey
Name for a generated primary key constraint.(Annotation Element of javax.jdo.annotations.Join)
find(entityClass, primaryKey, lockMode, properties)
Find by primary key and lock, using the specified properties.(Method of javax.persistence.EntityManager)