About primary key

11-20 of 200Refresh
Forum
33

Merge failure with composite primary key

it. The composite primary key issue is unclear, since switching to a single primary key field doesn't seem to make any difference. eurojet
Forum
33

Merge Issue: Attempt to reuse an existing primary key value

: Attempt to reuse an existing primary key value (MyTestCase$MyEntityChild:'child1') at com.objectdb.o ... that "Attempt to reuse an existing primary key value" on my merge operation is a total nonsense. If 2.5
Forum
33

Primary key generation problem after changing entity package

keep getting errors : Attempt to reuse an existing primary key value... My primary keys are annotated
Forum
33

remove & persist in same transaction => Attempt to reuse an existing primary key value

an existing primary key value (Persist_Remove_Persist$EntityA:1)   We created a small test ... and then in the same transaction persisting another object with the same primary key of the removed object
Issue
32

Merge throw exception "Attempt to reuse an existing primary key value"

Hi, if Id = 0 I got javax.persistence.EntityExistsException: com.objectdb.o.UserException: Attempt to reuse an existing primary key value (ru.dz.train.test.ZeroIdTest$MyEntity:0)   if Id=1 no exception code : import javax.persistence.*; public class ZeroIdTest {     public static void main
Forum
32

Query on Embedded Primary Key?

Hi, I am trying to use Embedded Primary Key - but seems I can't retrieve them correctly with the query below - the query seem to work fine for other field (in the code = primkeycopy). The error I get when is below - it complains about a casting issue. Let me know how to fix it - (full reproducible
Forum
32

Uninitialized primary key (id = 0)

Exception in thread "main" [ObjectDB 2.2.9_04] javax.persistence.RollbackException Failed to commit transaction: Attempt to reuse an existing primary key value (image.Meta:0) (error 613) at com.objectdb.jpa.EMImpl.commit(EMImpl.java:277) I check the db by explorer.jar, and find
Forum
31

Internal ObjectDB error by read the primary key

Internal ObjectDB error by read the primary key
JDO Doc
30

JDO Predefined ID Classes

An object ID is a combination of a persistence capable class and a primary key. It provides ... for persistence capable classes with a simple single field primary key: Object IDs are used in many ... but should not be used as the type of a primary key field in a persistence capable class. For example
Manual
28

Auto Generated Values

generated for that field. This is primarily intended for primary key fields but ObjectDB also supports ... for entity objects with no primary key fields defined (as explained in the previous section). The same number generator is also used to generate numeric values for primary key fields annotated by