ObjectDB ObjectDB

Internal Website Search

131-140 of 200 resultsRefresh

Optimistic locking: prevent version increment on entity collection attribute

with the EntityManager's life cycle but cannot figure out what. I am using Guice injection and Guice persist and should get one EntityManager per request. Also, please note that in the web app I actually ... is the EntityManager     em.getTransaction().begin();        Document doc = new Document

JBOSS AS7 7.1.1 - Entity not persisted and createNamedQuery fire exception

java.util.List; import javax.ejb.Stateless; import javax.persistence.EntityManager; import javax ... EntityManager em;     // Stores a new guest     public void persist(final Guest guest ... ; import javax.ejb.Stateless; import javax.persistence.EntityManager; import javax.persistence

Memory consumption of empty Strings

.odb");     EntityManager entityManager = entityManagerFactory.createEntityManager ... );       entityManager.getTransaction().begin();       entityManager.persist(entity);       entityManager.getTransaction().commit();       entityManager.clear();     }     entityManager.close

Should derived fields of an EmbeddedId be manually maintained by app code?

.Entity; import javax.persistence.EntityManager; import javax.persistence.FlushModeType; import ... static EContainer getInstance(EntityManager em) { EContainer c = em.find(EContainer.class, "1 ... , EntityManager em) throws TestException { if (lastInstanceInMap == null) { lastInstanceInMap = 0

Insertion Speed Rate and Batch Load

This test from the Memory Leak thread uses a separate transaction, and moreover, a new EntityManager per stored entity object. A batch load should reuse the EntityManager and persist a large number ... =             Persistence.createEntityManagerFactory("$objectdb/db/speed.odb");         EntityManager

ODB IndexActivation NullPointerException

to an existing Database and create an EntityManager. 1) sometimes the following System out: * Batch ... with opening and closing the creation of EntityManagerFactory or of EntityManager? Is it possible ... ) is to create a entityManager - close it - and wait a few seconds, that the IndexActiovation thread


of the EntityManager, Query, and TypedQuery interfaces that allow lock modes to be specified or used


javax.persistence Annotation PersistenceContext Target: Classes and fields (including property get methods) Expresses a dependency on a container-managed EntityManager and its associated persistence context. Since: JPA 1.0 String name (Optional) The name by which the entity manager


Annotation Element javax.persistence.NamedNativeQuery String name The name used to refer to the query with the EntityManager methods that create query objects. Since: JPA 1.0


Annotation Element javax.persistence.NamedQuery String name (Required) The name used to refer to the query with the EntityManager methods that create query objects. Since: JPA 1.0

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