Home » Search

About FlushModeType

21-30 of 36Refresh
Forum
3

Duplicate Entity class names causes Exception in Query

.Singleton.count", Long.class); q.setFlushMode(FlushModeType.AUTO); try { return q ... to see its results   q.setFlushMode(FlushModeType.AUTO);   try {    long l = (Long) q.getSingleResult ... we flush transaction to db if we wish to see its results q.setFlushMode(FlushModeType.COMMIT); //q
Forum
3

Empty temporary dat files in the temp folder

.EntityManager; import javax.persistence.EntityManagerFactory; import javax.persistence.FlushModeType ... ();   em.setFlushMode(FlushModeType.AUTO);   em.getTransaction().begin();   MyEntity myEntity = new ... .createEntityManager();   em.setFlushMode(FlushModeType.AUTO);   em.getTransaction().begin
Forum
3

Performance and memory usage of queries

javax.persistence.FlushModeType; import javax.persistence.OneToMany; import javax.persistence ... ;   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
3

Remove a modified entity cause an optimistic lock exception

FlushModeType.AUTO?) Removing the object. Committing the changes. The console application is the same ... (FlushModeType.AUTO);         em.getTransaction().begin();         em.persist(new MyEntity ... and can be demonstrated with a simple console application. In your last post FlushModeType.AUTO is set
Forum
3

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

Hello Support, in our configuration (FlushModeType.AUTO) is the execution of  em.find(Entity.class ... ; import javax.persistence.EntityManagerFactory; import javax.persistence.FlushModeType; import javax ... .createEntityManager(); em.setFlushMode(FlushModeType.AUTO); System.out.println("create and persist
Forum
3

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
Forum
3

Database(*.odb) file size on disk

.EntityManager; import javax.persistence.EntityManagerFactory; import javax.persistence.FlushModeType ... .setFlushMode(FlushModeType.AUTO);   int objects = 1000;   int loops = 3;   for (int iteration = 0
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

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
Forum
3

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