About primary key

forum_thread

Conflicting modifiers .... (javax.persistence.Id, javax.persistence.ManyToOne)

I have two classes a Container type class and another class that is 'contained' by that class. The contained class, CompoundKeyMapItem, represents an alternate implementation of an object held in a Map, and uses a Compound Primary Key. The contained class therefore uses an @IdClass. This all works fine on Eclipselink. However when I try and run this in ObjectDb I get the following error; ... of an object held in a Map, and uses a Compound Primary Key. The contained class therefore uses an @IdClass. This all works ...

 
manual

ORDER BY clause (JPQL / Criteria API)

Explains how to use the ORDER BY clause in a JPA/JPQL query.... expressions. In this case, the first expression is the primary order expression. Any additional order expression is used to order ... objects ordered by currency as the primary sort key and by name as the secondary sort key: SELECT c . currency ...

 
forum_thread

Repair broken references in entities

Hello, it is possible to recover an entity that has been removed automatically by CascadeType.Remove. After cascade remove the removed entity will be persisted with the identical primary key. Are all broken references in other entities on this removed/persisted entity repaired again? best regards ... the removed entity will be persisted with the identical primary key. Are all broken references in other entities on this ... to persist a new entity of the same type with the same primary key, and then references to the old entity should point to the new one ...

 
forum_thread

Broken @ManyToOne reference

Hi, I have objects of type A belonging to objects of type B, defined as follows: @MappedSuperclass public abstract class A {   @Id   @ManyToOne(fetch = FetchType.EAGER, cascade=CascadeType.ALL, optional=false)   private B b;   @Id   @Column(length = 36)   private String stringId; } @MappedSuperclass public abstract class B {   @Id   private String name; } ... because  Main.CHILD_ID is only part of the primary key now. ObjectDB Support ObjectDB - Fast Object ...

 
api-jpa

JPA Annotations for Value Generation

Reference (JavaDoc) of JPA 2 value generation annotations, including @GeneratedValue, @SequenceGenerator and @TableGenerator. Automatically generated values are mainly useful for primary key fields, but are supported by ObjectDB also for regular (non primary key) ...

 
api-jdo

PrimaryKey.column

Name of the column to use for the primary key(Annotation Element of javax.jdo.annotations.PrimaryKey)

 
api-jdo

Join.generatePrimaryKey

Generate or assume a primary key constraint exists on the column or columns associated with this join.(Annotation Element of javax.jdo.annotations.Join)

 
api-jpa

TableGenerator.pkColumnValue

(Optional) The primary key value in the generator table that distinguishes this set of generated values from others that may be stored in the table.(Annotation Element of javax.persistence.TableGenerator)

 
forum_thread

Is ObjectDB the only object database that supports JPA?

Other Object database does'nt support JPA?   ... object databases. For example, user defined primary keys and composite primary keys are features of RDBMS (relational databases), which are not ...

 
api-jdo

javax.jdo.annotations.PersistenceCapable

Annotation for whether the class or interface is persistence-capable.(Annotation of JDO)