About detached

forum_thread

ObjectDB version 2.1 has been released

Version 2.1 has been released: #1 2011-02-25 06:25 ObjectDB 2.1 has been released and it includes important additions and fixes: Added Online Backu ...

 
forum_thread

Error during cascaded merge

Hello! I have a new problem with ObjectDB 2.5.5_02. This issue appeared after the upgrade from 2.5.5. I get the following exception: ... is exactly what happens in our webapp. A unit entity gets detached, the user edits it, its merged back. Here are the relevant parts ...

 
api-jdo

isDirty(pc)

Tests whether the parameter instance is dirty.(Method of javax.jdo.spi.StateInterrogation)

 
forum_thread

Updating existing persistence entries

I have stored some instances of MyObject via em.persist(myObjectInstance); I can fetch them and bind them to a kind of property editor in my app (it simply calls the setters to reflect gui editing actions). When I try to persist a object later on, I get an error like com.objectdb.o.UserException: Attempt to reuse an existing primary key value which makes sense to me but I'm missing a em.update() method. ... a transaction (when SAVE is selected). If a detached object is modified, it has to be merged (maybe merge is your ... entity objects as the beans, and then you do not have detached objects and merge is not required. This is how ObjectDB Explorer ...

 
api-jdo

setCopyOnAttach(flag)

Sets the copyOnAttach setting.(Method of javax.jdo.PersistenceManager)

 
api-jdo

postAttach(event)

This method is called after a detached instance is attached, via the javax.jdo.PersistenceManager.makePersistent method.(Method of javax.jdo.listener.AttachLifecycleListener)

 
api-jdo

setCopyOnAttach(flag)

Sets the default copyOnAttach setting for all PersistenceManager instances obtained from this factory.(Method of javax.jdo.PersistenceManagerFactory)

 
api-jdo

makeTransient(pc, useFetchPlan)

Make an instance transient, removing it from management by this PersistenceManager.(Method of javax.jdo.PersistenceManager)

 
api-jdo

makeTransientAll(useFetchPlan, pcs)

Make instances transient, removing them from management by this PersistenceManager.(Method of javax.jdo.PersistenceManager)

 
api-jdo

makeTransientAll(pcs, useFetchPlan)

Make instances transient, removing them from management by this PersistenceManager.(Method of javax.jdo.PersistenceManager)