About detach

forum_thread

evictAll() behavior

I'm writing a multi-user drawing tool, using objectdb as the central store.  When a user press F5, I want to pick up all the changes from the database.  So, I call evictAll() in the following ways: pmf.getDataStoreCache().evictAll();  // the factory pm.evictAll();                                 // the persistence manager A couple of questions about this: 1. the first evictAll() seems to be clearing the L2 cache -- is this correct 2. the evicts only work when they are done inside a transaction -- is this specified in the JDO spec? #1 2010-12-08 23:57 I'm writing a multi-user drawing tool, using objectdb as the central store.  When a user press F5, I want to ...

 
api-jpa

remove(entity)

Remove the entity instance.(Method of javax.persistence.EntityManager)

 
forum_thread

Attempt to refresh a non managed entity object (error 635)

Just ran into a problem that I've not seen in 10 years of running ObjectDb: java.lang.IllegalArgumentException Attempt to refresh a non managed entity object (error 635) Nothing changed in my code, but I'm wondering if there is a problem with the config file, and /or my recent experiments with Intellij's JPA database explorer, which required me to use a JPA persistence.xml configuration file. (I was able to use to run objectdb queries from inside Intellij). #1 2012-05-17 18:03 Just ran into a problem that I've not seen in 10 years of running ObjectDb: java.lang.IllegalArgumentEx ...

 
forum_thread

Fetch a whole entity graph eager

Hello, I have two question at you. Are you provided JPA 2.1 annotation @NamedEntityGraph in next version ObjectDB 3.0? And do you know an easy possibility to get an entirely eager entity graph with all depended entities which we can use as a detached full accessible entity graph outside a transaction without lazy loading? Best regards #1 2017-09-07 14:04 Hello, I have two question at you. Are you provided JPA 2.1 annotation @NamedEntityGraph in next ...

 
api-jdo

FetchPlan.DETACH_LOAD_FIELDS

For use with PersistenceManager.detachCopy and setDetachmentOptions.(Static Field of javax.jdo.FetchPlan)

 
api-jdo

getSource()

The source object of the Event.(Method of javax.jdo.listener.InstanceLifecycleEvent)

 
api-jdo

getTarget()

The target object of the Event.(Method of javax.jdo.listener.InstanceLifecycleEvent)

 
api-jdo

getDetachmentRootClasses()

Get the root classes for DetachAllOnCommit.(Method of javax.jdo.FetchPlan)

 
api-jdo

javax.jdo.JDODetachedFieldAccessException

This class represents exceptions caused by access of an unloaded field while the instance is detached.(Exception of JDO)

 
api-jpa

getReference(entityClass, primaryKey)

Get an instance, whose state may be lazily fetched.(Method of javax.persistence.EntityManager)