ObjectDB ObjectDB

Internal Website Search

11-20 of 200 resultsRefresh
160

Merge failure with composite primary key

should fix it. The composite primary key issue is unclear, since switching to a single primary key
160

Changing Primary Key

that, and query the table all the PK fields are null or 0. What can I do to modify primary keys? Trianglehead Json Error ObjectDB doesn't support changing primary keys, as it may break references to objects
160

Primary key generation problem after changing entity package

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

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, to demonstrate ... an entity object and then in the same transaction persisting another object with the same primary key
160

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 ... an existing primary key value" on my merge operation is a total nonsense. If 2.5.5_14 fix that problem that's ok for my case. xirt Sylvain
157

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
157

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
31

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
31

Object creation in the Explorer requires automatically set primary keys

The feature of creating new objects in the Explorer is currently supported only for entity classes that have primary keys that are set automatically. support Support
31

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

Getting Started

ObjectDB is very easy to use. Follow the Getting Started Tutorial and the Quick Tour manual chapter and in minutes you may be able to write and run first Java programs against ObjectDB.

Prior knowledge or experience in database programming (SQL, JDBC, ORM, JPA, etc.) is not required, but some background in using the Java language is essential.

Need Help?

  1. Search ObjectDB website
  2. Read the FAQ
  3. Follow the Tutorials
  4. View or post in the forum
  5. Search or file an issue
  6. Contact support