About merge

41-50 of 107Refresh
Forum
3

OptimisticLockException

a subsequent persist operation Are you using a merge or persist? With a 'em.merge ... are also made to the original instance, hence always in sync? I could likely be wrong here. EDIT: Merge ... working perfectly.   However, as the OP posted, if they are using 'merge' that they require
Forum
2

Upgrade to 2.4.1_01

.contextspace.AddressTest$CDI.contactDetails (error 637) at com.objectdb.jpa.EMImpl.merge(EMImpl.java ... .objectdb.o.EMR.q(EMR.java:79) at com.objectdb.jpa.EMImpl.merge(EMImpl.java:451) ... 24 more @OneToOne ... .objectdb.jpa.EMImpl.merge(EMImpl.java:454) at com.contextspace.AddressTest.test(AddressTest.java:93) at sun
Forum
2

Upgrade to 2.4.1_02

have attached a testcase demonstrating this issue. Its failing on the merge. Thanks P. Sorry forgot the stack ... .EMImpl.merge(EMImpl.java:454) at com.contextspace.AddressTest.test(AddressTest.java:95) at sun ... (EMR.java:76) at com.objectdb.jpa.EMImpl.merge(EMImpl.java:451) ... 24 more Caused by: java.lang
Forum
2

Upgrade to 2.4.1_03

.EMImpl.merge(EMImpl.java:454) at com.contextspace.AddressTest.test(AddressTest.java:93) at sun ... .java:93) at com.objectdb.o.EMR.q(EMR.java:76) at com.objectdb.jpa.EMImpl.merge(EMImpl.java:451 ... more This and the previous problem result from the way that ObjectDB builds a new entity object for merge, which includes
Forum
2

Double persist of Entity field with Cascade.ALL

on the client side (i.e. by adding or removing new Chapters), merging the Book class on the server side should result in new and modified Chapters being persisted and merged accordingly. This works as ... . Your test project demonstrates a bug in cascading merge to new entity objects. A new issue
Forum
2

Entity Update - Is the documentation up to date?

transaction.  If I subsequently begin and commit a transaction, all my changes seem to be merged ... seem to be merged automatically. The more conventional way is to update entities within an active transaction, or update entities outside the transaction and then merge them within an active
Forum
2

Java 8 Enhancer Problem

and merge an object I get the following exception: Caused by: com.objectdb.o._IllegalArgumentException ... ) at com.objectdb.o.OBC.onObjectDBError(OBC.java:1506) at com.objectdb.jpa.EMImpl.merge(EMImpl.java:518) Inserting new objects works. Also merging ones created after the update to 2.5.5_01. The new
Forum
2

newbie - lots of exeptions

.jpa.EMImpl.merge(EMImpl.java:456) at com.sun.enterprise.container.common.impl.EntityManagerWrapper.merge(EntityManagerWrapper.java:286) at com.prohire.prohire_sync.ProhireDataSyncImplementation ... .objectdb.o.EMR.q(EMR.java:77) at com.objectdb.jpa.EMImpl.merge(EMImpl.java:453) ... 66 more Caused by
Forum
2

Optimization Question

only the modified objects, maybe the new merge feature of ObjectDB 2.0 RC1 can help. ObjectDB does such comparisons internally to determine if a merged object has been modified. Still, you will have to manage the object IDs in order to merge a graph of objects that use existing object IDs
Forum
2

Removing an element from an @OneToMany doesn't work

); manager.merge(parent); Manager.merge is just transaction.begin(); entityManager.merge(o); transaction