Internal Website Search

1-10 of 119 resultsRefresh

Selective merge/cascade of detatched entity

Company. Each salesman is given many numerical targets for the new company. I then need to merge ... (); giveSalesmenNewTargets(salesmen, company); for (Salesman s : salesmen) em.merge(s); This appears to have the effect of checking and merging the entire companyTargets map for every salesman

Merge Issue: Attempt to reuse an existing primary key value

> I observed a new bug or a feature on an ordinary merge operation. Merge parent1        ... .addChild(String.valueOf("child1"));         em.merge(e1);  

Extra uninitialised entities spawned on merge()

TestObjectdbSpawnsDuplicatesOnMerge {     final static boolean DO_PERSIST_BEFORE_MERGE = true ... ;         if (DO_PERSIST_BEFORE_MERGE) {      ... ;    em.merge(root);         em.getTransaction

Merge on detached entities

Hello, it is possible to merge detached entities? merge by em.merge(entity) will be saved the entities. Can this works correctly? How are the rules of the merge process? Do the changed fields of the detached entity

Cascading merge() leading to "Attempt to persist a reference to a non managed instance" error

some tests with a parent/child relationship and cascading merge() operations. The parent ... .getTransaction();     tx.begin();     em.merge(new Child(new Parent("Joe")));     em.merge(new Child(new Parent("Tim")));     tx.commit

EntityManager.merge gives EntityNotFoundException

Just started using objectdb (2.3.4). Calling EntityManager.merge for a new (non ... 631) at com.objectdb.jpa.EMImpl.merge(EMImpl.java:456) at classdb.Test.main(Test.java:32) thepigs Matt Pepar You are right, merging non managed (new) entity objects

NullpointerException when execute a merge

; We create an object tree that is persisted with "merge()". Then we want to persist “merge()” an new object of a different type.   [we use ... :66) at com.objectdb.o.OBC.onObjectDBError(OBC.java:1503) at com.objectdb.jpa.EMImpl.merge(EMImpl

merge(entity)

.persistence">javax.persistence.EntityManagerT merge(  T entity) Merge the state of the given entity into the current ... "> Returns: the managed instance that the state was merged

CascadeType.MERGE

Enum Constant javax.persistence.CascadeTypeMERGE Cascade merge operation

Detached Entity Objects

="#explicit_merge">merged back into an EntityManager to become managed again.commit failure. Explicit Merge merge_T">merge method: em.