Fast Object Database for Java - with JPA/JDO support

Internal Website Search

11-20 of 169 resultsRefresh


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


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


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


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

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

Advanced JPA Topics

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


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


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

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

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

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