About rollback

61-70 of 93Refresh
Issue
2

UPDATE statemen crash when i put the WHERE clause.

.getTransaction().isActive()) updateEm.getTransaction().rollback(); updateEm.close(); if (em.getTransaction().isActive()) em.getTransaction().rollback(); em.close(); Apparently
Forum
1

ClassCastException on closing PersistenceManager

().rollback();    }     this.persistenceManager.close();   } } It looks like it's related
Forum
1

ClassCastException: cannot be cast to com.objectdb.spi.TrackableUserType

() ) transaction.rollback() if( !pm.isClosed() ) pm.close
Forum
1

CriteriaQuery .where() for multiple conditions

.getTransaction().rollback(); } em.close(); } return person; } Yes, it looks fine
Forum
1

Date field Index is corrupted due to time change

())                 em.getTransaction().rollback();         }         q = em.createQuery("SELECT
Forum
1

Empty temporary dat files in the temp folder

rollback the transaction and closing the EntityManager. In some scenarios we use additional databases
Forum
1

Entity has be persistended,but query not fetched?

);         System.out.println("count: " + query.getResultList().size());         em.getTransaction().rollback
Forum
1

EntityTransaction.commit() does not release a pessimistic lock

It appears that EntityTransaction.commit() does not release a pessimistic lock -> test code below. I tried it in with the current (2.7.6_01) and older versions (2.6.9, 2.5.7, 2.4.7) with the same result. (side note: EntityTransaction.rollback() releases it correctly) // Account.java package
Forum
1

How to delete M2M relationship?

if (transaction != null && transaction.isActive()) { transaction.rollback
Forum
1

How to use ObjectDB properly in spring boot application?

()) em.getTransaction().rollback(); } It works but the code has become uggly since I had to use try