ObjectDB ObjectDB

Internal Website Search

31-39 of 39 resultsRefresh

Entity has be persistended,but query not fetched?

.setFlushMode(FlushModeType.AUTO); query.getResultList(); maozf maozf The following example demonstrates ... = em.createQuery("SELECT u FROM User u");         query.setFlushMode(FlushModeType.AUTO

Is it possible to remove parent/child entities without refresh?

.persistence.FetchType; import javax.persistence.FlushModeType; import javax.persistence ... entityManager = emf.createEntityManager();   entityManager.setFlushMode(FlushModeType.AUTO);   return

Merge with Parent/Child entities not possible

.EntityManagerFactory; import javax.persistence.FetchType; import javax.persistence.FlushModeType; import ... ();   entityManager.setFlushMode(FlushModeType.AUTO);   return entityManager; } private void

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

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

Visibility of changes in Transaction is not visible to a JPA QL Query

Yes, changing the Query to FlushModeType.AUTO meant that the added items are 'visible' JFK John ... the setting of the EntityManagerFactory / EntityManager - FlushModeType.AUTO is specified. support Support

Exception on creation when running multithreaded

also had: typedQuery.setFlushMode(FlushModeType.AUTO); for the specific query. If I change the logic

Memory Leaks after COMMIT operation (checked on versions 2.6.5 & 2.6.6.b01)

_EntityManager = m_EntityMgrFactory.createEntityManager(); m_EntityManager.setFlushMode( FlushModeType

Upgrade to Java 8 won't run

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

Sometimes cascade persist does not work during commit

.setFlushMode(FlushModeType.AUTO); em.getTransaction().begin(); em.createQuery ... (FlushModeType.AUTO); em.getTransaction().begin(); Query query = em.createQuery

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