About merge

51-60 of 114Refresh
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
Forum
2

Updating existing persistence entries

a transaction (when SAVE is selected). If a detached object is modified, it has to be merged (maybe merge is your missing method?) in order for the update to take effect. It would be simpler to use the managed entity objects as the beans, and then you do not have detached objects and merge is not
Forum
2

Cascading persistence through an inverse field

={PERSIST, REFRESH, MERGE}) private Set points = new HashSet<>(); public void addPoint ... { @ManyToMany(mappedBy="points", cascade={PERSIST, REFRESH, MERGE}) private Set
Issue
2

InternalException

are now: Open a new EntityManager Open a new transaction Merge the updated object (entityManager.merge) Commit the transaction   Could you please check if building the database with the schema (i.e
Forum
2

Object DB vs EclipseLink/TopLink: Unloaded relationships in detached entities

to use the entity in a transaction it will have to be properly merged. From chris_delahunt at http ... loading association from the database, when it needs it (without any merge call). From doug clarke
Forum
2

Removing an entity throws exception

more   After this exception is the entity detached (why?). When I merge it, I can remove it without problems ... :     em.getTransaction().begin();     try {      //c = em.merge(c);      em.remove(c
Issue
2

[ObjectDB 2.2.6_02] Unexpected exception (Error 990) at com.objectdb.o.OBC.aJ(OBC.java:961)

.merge(EMImpl.java:450) at com.reproduce.error.ReproduceTest.edit(ReproduceTest.java:116) at com ... (); chart = em.merge(chart); em.getTransaction().commit(); } catch (Exception ex
Issue
2

After using the enhancer, Lazy loaded collections are no longer loading. They are set as null

(Long id) { this.id = id; } @OneToMany(cascade={CascadeType.MERGE ... ={CascadeType.MERGE, CascadeType.PERSIST},             mappedBy="account", fetch = FetchType.LAZY
Forum
2

Attempt to remove a detached entity object (error 613)

Hello, that's a strange error for me ... I have a detached object in my Java code and i just wanted to merge it ... Unfortunatly, i get this error : Failed to commit transaction: Attempt to remove ... level batch SQL operations before flushing the merge. So i could give you more informations