Fast Object Database for Java - with JPA/JDO support

Merge failure with composite primary key


It was working well with previous releases and now is failling:

Exception in thread "main" [ObjectDB 2.3.7_20] javax.persistence.EntityNotFoundException
Entity is not found: MergeTest#('Hello',0) (error 631)
at com.objectdb.jpa.EMImpl.merge(
at MergeTest.main(




Thank you for the test case. It clearly demonstrates a new problem in merging non managed entity objects (calling merge on a new non persistent object), and build 2.3.7_21 should fix it.

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

ObjectDB Support
ObjectDB - Fast Object Database for Java (JPA/JDO)

Post Reply