About detach

11-20 of 160Refresh
JDO Doc
67

Constants.PROPERTY_DETACH_ALL_ON_COMMIT

Static Field javax.jdo.Constants String PROPERTY_DETACH_ALL_ON_COMMIT "javax.jdo.option.DetachAllOnCommit" Since: JDO 2.1 See Also: PersistenceManagerFactory.getDetachAllOnCommit()
JDO Doc
67

InstanceLifecycleEvent.DETACH

Static Field javax.jdo.listener.InstanceLifecycleEvent int DETACH Since: JDO 2.0
JDO Doc
67

ObjectState.DETACHED_CLEAN

Enum Constant javax.jdo.ObjectState DETACHED_CLEAN Since: JDO 1.0
JDO Doc
67

ObjectState.DETACHED_DIRTY

Enum Constant javax.jdo.ObjectState DETACHED_DIRTY Since: JDO 1.0
Manual
35

Working with JPA Entity Objects [2011-04-18]

: New, Managed, Removed and Detached. When an entity object is initially created its state is New.  In ... deletion are provided in the Deleting Entities section. The last state, Detached, represents entity ... of an EntityManager become detached when the EntityManager is closed. Working with detached objects
Manual
35

Working with JPA Entity Objects

: New, Managed, Removed and Detached. When an entity object is initially created its state is New.  In ... deletion are provided in the Deleting Entities section. The last state, Detached, represents entity ... of an EntityManager become detached when the EntityManager is closed. Working with detached objects
JDO Doc
29

javax.jdo.PersistenceManager

.0 See Also: deletePersistent(Object pc) T detachCopy(T pc) Detach the specified instance from the PersistenceManager. Detach the specified instance from the PersistenceManager. The flags for detachment (DETACH_LOAD_FIELDS and DETACH_UNLOAD_FIELDS) and the active fetch groups determine the scope
Issue
26

Navigation through lazy loading from Detached Objects

A main limitation of detached objects (as explained on the Detached Entities manual page) is: Retrieval by navigation from detached objects is not supported, so only persistent fields that have been loaded before detachment should be used. As explained on the Object DB vs EclipseLink/TopLink
Forum
26

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

(and so lazy loading would initially work), they become detached once the EntityManager under control ... are involved) to ensure the desired collections are resolved already before detachment, losing ... a FETCH JOIN as described here: Detach JPA objects with lazy initialized properties This has the big
Forum
25

Merge on detached entities

Hello, it is possible to merge detached entities? There are some attached entities which load from the database. The transaction is finished and the entities become detached. In a new transaction the fields of the detached entities will be changed and a merge by em.merge(entity) will be saved