Home » Search

About primary key

11-20 of 200Refresh
Forum
30

A bidirectional OneToOne association with a shared primary key

@OneToOne association that has a shared primary key, example: http://fruzenshtein.com/bidirectional-one-to-one-primary-key-association/ Can ObjectDB support this same specific relationship ... one to one association, but it cannot be based on identical primary keys, i.e. the primary key
Forum
30

More Efficient Primary Keys

Primary Key  with two Longs b) Embedded Primary Key with two Longs c) Furthermore, as String ... it is a composite primary key with the same size and structure. (b) requires instantiation ... Can you give us a recommendation as we can represent the Key (UUID) most efficient? Both in terms
Manual
30

Index Definition

field (similar to how primary keys behave). @Index represents either an ordinary index ... can only be defined on ordinary persistent fields (not on primary key / version fields). Composite Index A composite ... the BTree's primary sort key and which field is used as a secondary sort key. If x is specified first
Forum
29

Intermittent: "Attempt to reuse an existing primary key value" when persisting a new instance

Hi,   I don't have a useful test case to expose this issue, but I am getting an intermittent "Attempt to reuse an existing primary key value". In this particular instance, the error is: Attempt to reuse an existing primary key value (com.x.y.z.UserPassword:1) (error 642) at com.objectdb.jpa
Forum
29

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
29

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
29

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
29

remove() and 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
29

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
29

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