81 words

Merge failure with composite primary key

2012-04-27 16:55

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(EMImpl.java:451)
at MergeTest.main(MergeTest.java:19)



eurojet's picture
Joined on 2012-04-12
User Post #7
2012-04-28 18:32

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)
support's picture
Joined on 2010-05-03
User Post #1,045

Post Reply

Please read carefully the posting instructions - before posting to the ObjectDB website.

  • You may have to disable pop up blocking in order to use the toolbar (e.g. in Chrome).
  • Use ctrl + right click to open the browser context menu in the editing area (e.g. for using a browser spell checker).
  • To insert formatted lines (e.g. Java code, stack trace) - select a style in the toolbar and then insert the text in the new created block.
  • Avoid overflow of published source code examples by breaking long lines.
  • You may mark in paragraph code words (e.g. class names) with the code style (can be applied by ctrl + D).
  • Long stack traces (> 50 lines) and complex source examples (> 100 lines) should be posted as attachments.
Maximum file size: 32 MB