About commit

11-20 of 200Refresh
Manual
20

Entity Management Settings

" on-persist="false" on-commit="true" /> commit or flush), regardless of this setting. The level2 attribute specifies the size ... commit="true" /> The
Manual
20

Updating JPA Entity Objects

.getTransaction().begin(); employee.setNickname("Joe the Plumber"); em.getTransaction().commit(); The entity object is physically updated in the database when the transaction is committed. If the transaction is rolled back and not committed the update is discarded. On commit the persist operation
Manual
20

CRUD Database Operations with JPA [2011-02-11]

.getTransaction().commit(); Operations that modify the content of the database (such as storing new objects ... only when the transaction is committed. The Storing Entities section in chapter 3 discusses ... ().commit(); In the above code, p must be a managed entity object of the EntityManager em. The entity
Manual
20

CRUD Database Operations with JPA

.getTransaction().commit(); Operations that modify the content of the database (such as storing new objects ... only when the transaction is committed. The Storing Entities section in chapter 3 discusses ... ().commit(); In the above code, p must be a managed entity object of the EntityManager em. The entity
Issue
20

NullpointerException when execute a commit

to commit transaction: Unexpected internal exception at com.objectdb.o.MSG.d(MSG.java:75) at com.objectdb.jpa.EMImpl.commit(EMImpl.java:304) .... Caused by: com.objectdb.o.InternalException: Unexpected ... .EMImpl.commit(EMImpl.java:299) ... 45 more Caused by: java.lang.NullPointerException at com.objectdb.o
Forum
19

Rollback after commit fail

() persist object1 em.getTransaction().commit(); } catch(...){ em.getTransaction ... ().commit(); } catch(...){ em.getTransaction().rollback(); }   Parallel running threads caused that second thread commit will fail (primary key reuse exception), the exception is caught
Forum
19

Is it possible to commit only specific elements?

Hello, As stated above, I would like to know if it is possible to commit only specific elements, or ... , retrieving only the needed ones, creating new ones (which I want to commit), detaching the ones I've previously retrieved and finally committing. My context is big data and performance is an issue
Issue
19

Unexpected Exception during commit

.2.9_01] javax.persistence.RollbackException Failed to commit transaction: Unexpected internal exception (error 613) at com.objectdb.jpa.EMImpl.commit(EMImpl.java:277) at com ... .EMImpl.commit(EMImpl.java:274) ... 15 more Caused by: java.lang.NullPointerException
Forum
19

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

.COMMIT ); if ( m_EntityManager.isOpen() ) { m_EntityManager.getTransaction().begin ... ); } m_EntityManager.getTransaction().commit(); m_EntityManager.flush(); m ... .commit
Issue
19

Sometimes cascade persist does not work during commit

A, afterwards not persisted entities B are added to entity A. At the end a commit is executed and the commit persists the entities B automatically by cascading. But sometimes the cascading doesn't ... ?   // persist configuration: commit="true