Home » Search

About setFlushMode

11-20 of 24Refresh
Forum
3

Entity has be persistended,but query not fetched?

.setFlushMode(FlushModeType.AUTO); query.getResultList();   The following example demonstrates ... .createQuery("SELECT u FROM User u");         query.setFlushMode(FlushModeType.AUTO
Forum
3

Performance and memory usage of queries

;   for (int i = 0; i < 100; i++) {    em = emf.createEntityManager();    em.setFlushMode(FlushModeType ... .setFlushMode(FlushModeType.AUTO);   em.getTransaction().begin();   Query q = em.createQuery("DELETE
Forum
2

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

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

Database(*.odb) file size on disk

.setFlushMode(FlushModeType.AUTO);   int objects = 1000;   int loops = 3;   for (int iteration = 0
Forum
2

Exception on creation when running multithreaded

.setFlushMode(FlushModeType.AUTO); for the specific query.   If I change the logic and don't query before
Forum
2

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

entityManager = emf.createEntityManager();   entityManager.setFlushMode(FlushModeType.AUTO);   return
Forum
2

Merge with Parent/Child entities not possible

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

Query for objects persisted within the same transaction

_Mode_setFlushMode Thanks, The part about performance in documentation is so true. I think I'll stick
Forum
2

Remove a modified entity cause an optimistic lock exception

:$objectdb/db/test.tmp;drop");         EntityManager em = emf.createEntityManager();         em.setFlushMode
Forum
2

remove() and persist() in same transaction => Attempt to reuse an existing primary key value

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