ObjectDB ObjectDB

Internal Website Search

11-20 of 168 resultsRefresh
118

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 ... bean is released. 3. Use a FETCH JOIN as described here: Detach JPA objects with lazy initialized
29

Advanced JPA Topics

Describes advanced JPA topics - detached entity objects, lock management and entity lifecycle events.
23

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
6

FetchPlan.DETACH_LOAD_FIELDS

Static Field javax.jdo.FetchPlan int DETACH_LOAD_FIELDS For use with PersistenceManager.detachCopy and setDetachmentOptions. Specifies that fields that are not loaded but are in the current fetch plan should be loaded prior to detachment. Since: JDO 2.0
6

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()
6

ObjectState.DETACHED_DIRTY

Enum Constant javax.jdo.ObjectState DETACHED_DIRTY Since: JDO 1.0
6

ObjectState.DETACHED_CLEAN

Enum Constant javax.jdo.ObjectState DETACHED_CLEAN Since: JDO 1.0
6

InstanceLifecycleEvent.DETACH

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

javax.jdo.JDOEntityManager

the persistence context, causing all managed entities to become detached. Clear the persistence context, causing all managed entities to become detached. Changes made to entities that have not been flushed ... pc) void detach(Object entity) Remove the given entity from the persistence context, causing
2

javax.jdo.PersistenceManager

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

Getting Started

ObjectDB is very easy to use. Follow the Getting Started Tutorial and the Quick Tour manual chapter and in minutes you may be able to write and run first Java programs against ObjectDB.

Prior knowledge or experience in database programming (SQL, JDBC, ORM, JPA, etc.) is not required, but some background in using the Java language is essential.

Need Help?

  1. Search ObjectDB website
  2. Read the FAQ
  3. Follow the Tutorials
  4. View or post in the forum
  5. Search or file an issue
  6. Contact support