About PrimaryKey

manual

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 ...

 
api-jpa

find(entityClass, primaryKey)

Find by primary key.(Method of javax.persistence.EntityManager)

 
api-jpa

getReference(entityClass, primaryKey)

Get an instance, whose state may be lazily fetched.(Method of javax.persistence.EntityManager)

 
api-jpa

find(entityClass, primaryKey, properties)

Find by primary key, using the specified properties.(Method of javax.persistence.EntityManager)

 
api-jpa

find(entityClass, primaryKey, lockMode)

Find by primary key and lock.(Method of javax.persistence.EntityManager)

 
api-jpa

evict(cls, primaryKey)

Remove the data for the given entity from the cache.(Method of javax.persistence.Cache)

 
api-jpa

contains(cls, primaryKey)

Whether the cache contains data for the given entity.(Method of javax.persistence.Cache)

 
api-jdo

Persistent.primaryKey

Whether this member is part of the primary key for application identity.(Annotation Element of javax.jdo.annotations.Persistent)

 
api-jdo

Join.primaryKey

Name for a generated primary key constraint.(Annotation Element of javax.jdo.annotations.Join)

 
api-jpa

find(entityClass, primaryKey, lockMode, properties)

Find by primary key and lock, using the specified properties.(Method of javax.persistence.EntityManager)