ObjectDB ObjectDB

Internal Website Search

1-10 of 200 resultsRefresh

Storing JPA Entity Objects

New entity objects can be stored in the database either explicitly by invoking the persist method or implicitly as a result of a cascade operation. Explicit Persist The following code stores ... and changes its state to Managed. The new entity object is stored in the database when the transaction

CRUD Database Operations with JPA

it to store, retrieve, update and delete database objects. Storing New Entity Objects The following code fragment stores 1,000 Point objects in the database: em.getTransaction().begin(); for (int ... .getTransaction().commit(); Operations that modify the content of the database (such as storing new objects

CRUD Operations with JPA

Explains how to use JPA for CRUD database operations (persist, retrieve, update, remove).

Chapter 3 - Using JPA

Explains how to store, retrieve, update and delete entity objects using JPA.

JPA Entity Fields

that do not participate in persistence and their values are never stored in the database (similar ... only transient (non persistent) entity fields with no real content to be stored in the database. Persistent ... otherwise (e.g. by using the @Transient annotation). Storing an entity object in the database does not


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

[ODB1] Chapter 6 - Persistent Objects

database content, or a transient object, i.e. not related to any database. Storing Objects Explicitly ... is automatically stored in the database when the transaction is committed (unless it is being deleted ... of PersistenceManager. The makePersistentAll(...) method stores all the elements in the specified

[ODB1] Chapter 2 - A Quick Tour

another string is stored in the database and all the strings in the database are printed to standard ... catch (JDOException x) { 23 // If not found - construct and store a new list ... instances. ObjectDB, as a pure object database, can simply store a memory data structure in the database

[ODB1] Chapter 3 - Persistent Classes

Persistent Classes are user defined classes whose instances can be stored in a database using JDO ... Fields and Types Storing a persistent object in the database does not store methods and code. Only the state of the object as reflected by its persistent fields is stored. Persistent fields, by default

[ODB1] Chapter 4 - JDO Metadata

of class X are not persistent fields, and when an instance of class C is stored, only persistent fields from classes B and C are stored. The closest persistent super class in the inheritance hierarchy ... is never stored in the database. The main difference is that, on transaction rollback, it returns automatically

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