Fast Object Database for Java - with JPA/JDO support

Internal Website Search

91-100 of 200 resultsRefresh

SELECT clause (JPQL / Criteria API)

The ability to retrieve managed entity objects is a major advantage of JPQL. For example, the following query returns Country objects that become managed by the EntityManager em: TypedQuery ... are not associated with an EntityManager and changes to them when a transaction is active are not

ObjectDB Object Database Features

entity object cache (per EntityManager). L2 shared entity data cache (per EntityManagerFactory ... and fault tolerance. Online Backup Online backup by a simple query on an EntityManager

Entity Management Settings

the persistence context of the EntityManager (which serves as a first level cache). The valid values are "weak ... all its EntityManager instances. The level 2 cache is disabled by specifying 0 or 0mb. The element

Step 4: Add a Servlet Class

= (EntityManagerFactory)getServletContext().getAttribute("emf"); EntityManager em ... the application scope attribute, and then an EntityManager (representing a database connection

JPA Metamodel API

by the EntityManager's getMetamodel method (both methods are equivalent). For example, given an EntityManager, em, a Metamodel instance can be obtained by: Metamodel metamodel = em.getMetamodel

Step 4: Add a Servlet Class

().getAttribute("emf"); EntityManager em = emf.createEntityManager(); try ... : The EntityManagerFactory is retrieved from the application scope attribute, and then an EntityManager


with an EntityManager (represented by em in the following code snippets), which serves as a factory

JPA Queries

getCriteriaBuilder method or by the EntityManager's getCriteriaBuilder method (both methods

Step 3: Add a Main Class

("$objectdb/db/p2.odb"); EntityManager em = emf.createEntityManager(); // Store 1000

Posting Sample Code

.createEntityManagerFactory(                 "objectdb:$objectdb/db/test.tmp;drop");         EntityManager

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