ObjectDB ObjectDB

Internal Website Search

21-28 of 28 resultsRefresh

Merge with Parent/Child entities not possible

();   entityManager.setFlushMode(FlushModeType.AUTO);   return entityManager; } private void

Query for objects persisted within the same transaction

/java/jpa/query/setting#Flush_Mode_setFlushMode support Support Thanks, The part about performance in

Conflicting modifiers .... (javax.persistence.Id, javax.persistence.ManyToOne)

("numberOfMapItems"); q.setFlushMode(FlushModeType.AUTO); try { long l = (Long) q.getSingleResult

Remove a modified entity cause an optimistic lock exception

"); EntityManager em = emf.createEntityManager(); em.setFlushMode(FlushModeType.AUTO); em.getTransaction().begin

Spring Transactions (@Transactional) within ObjectDB

See the links to the manual in #2 above. You should prepare the EntityManager:     em.setFlushMode

remove & persist in same transaction => Attempt to reuse an existing primary key value

.createEntityManager(); em.setFlushMode(FlushModeType.AUTO); System.out.println("create and persist"); em

Upgrade to Java 8 won't run

.createEntityManagerFactory (dbName) em = emf.createEntityManager() em.setFlushMode(FlushModeType.AUTO

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

.setParameter("container", this); q.setFlushMode(FlushModeType.AUTO); try { long l = (Long) q

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