ObjectDB ObjectDB

Merge failure with composite primary key

#1

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)

 

Thanks.

edit
delete
#2

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
edit
delete

Reply

To post on this website please sign in.