About PrimaryKey

11-20 of 24Refresh
JDO Doc
67

Join.primaryKey

Annotation Element javax.jdo.annotations.Join String primaryKey Name for a generated primary key constraint. Returns: the name of the generated primary key constraint Default value: "" Since: JDO 2.1
JDO Doc
67

PrimaryKey.column

Annotation Element javax.jdo.annotations.PrimaryKey String column Name of the column to use for the primary key Returns: the name of the column to use for the primary key Default value: "" Since: JDO 2.1
JDO Doc
67

PrimaryKey.columns

Annotation Element javax.jdo.annotations.PrimaryKey Column[] columns The column(s) for the primary key Returns: the column(s) for the primary key Default value: {} Since: JDO 2.1
JDO Doc
67

PrimaryKey.name

Annotation Element javax.jdo.annotations.PrimaryKey String name Name of the primary key constraint Returns: the name of the primary key constraint Default value: "" Since: JDO 2.1
JDO Doc
22

JDO Predefined ID Classes

class MyClass { @PrimaryKey String id; } Persistent objects with a String primary key (including
JPA Doc
21

javax.persistence.EntityManager

(Class entityClass, Object primaryKey) Find by primary key. Find by primary key. Search for an entity ... context, it is returned from there. Parameters: entityClass - entity class primaryKey - primary key ...  primaryKey, Map properties) Find by primary key, using the specified properties. Find by
JPA Doc
13

javax.persistence.Cache

(Class cls, Object primaryKey) Whether the cache contains data for the given entity. Whether the cache contains data for the given entity. Parameters: cls - entity class primaryKey - primary key ... class Since: JPA 2.0 void evict(Class cls, Object primaryKey) Remove the data for the given entity
JDO Doc
9

javax.jdo.annotations.Persistent

Since: JDO 2.1 String primaryKey Whether this member is part of the primary key for application ... to specifying @PrimaryKey as a separate annotation on the member. Returns: whether this member
JDO Doc
6

javax.jdo.annotations.Join

value: "" Since: JDO 2.1 String primaryKey Name for a generated primary key constraint. Name
Forum
6

Object as parameter results in exception

; } and the query:    @Override public T fetch(Company company, Long primaryKey) {   mLogger.info("Fetching type: {} with id {} with company: {}", new Object[]{managedClass, primaryKey ... .equal(p.get("id"), primaryKey),     qb.and(qb.equal(p.get("owningCompany"), company