ObjectDB ObjectDB

Internal Website Search

131-140 of 200 resultsRefresh
11

Selective merge/cascade of detatched entity

to: EntityManager em = emf.getEntityManager(); em.getTransaction().begin(); Company company = new Company("new ... : EntityManager em = emf.getEntityManager(); em.getTransaction().begin(); Company company = new Company("new ... .createEntityManagerFactory("objectdb:/var/tmp/points.tmp;drop"); EntityManager e = emf.createEntityManager(); e
11

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
11

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
11

Memory consumption of empty Strings

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

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
10

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
2

javax.persistence.PessimisticLockScope

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

javax.persistence.PersistenceContext

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
2

NamedNativeQuery.name

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
2

NamedQuery.name

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