Fast Object Database for Java - with JPA/JDO support

Internal Website Search

11-20 of 200 resultsRefresh
31

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
31

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
31

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
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
31

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

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
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
30

Internal ObjectDB error by read the primary key

Internal ObjectDB error by read the primary key
29

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
28

[ODB1] Chapter 4 - JDO Metadata

field, empty collection, 0 size array, and so on). primary-key The primary-key attribute, defined in ... > key="true" embedded-value="true ... , respectively. embedded-element, embedded-key, embedded-value (true | false) The embedded-element attribute

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