About transaction

forum_thread

Optimistic locking failure

Optimistic locking failure: I am using a Semaphore to force this execution of concurrents transactions T1 and T2 that cause parallel updates to A/B but it does not throw an OptimisticLockException and roll back. #1 2012-04-30 16:02 Optimistic locking failure: I am using a Semaphore to force this execution of concurrents transactions T1 ...

 
manual

Retrieving JPA Entity Objects

Explains how to use JPA to retrieve entity objects from the database.... The retrieval of objects does not require an active transaction because it does not change the content of the database. The ...

 
forum_thread

Uninitialized primary key (id = 0)

Exception in thread "main" [ObjectDB 2.2.9_04] javax.persistence.RollbackException Failed to commit transaction: Attempt to reuse an existing primary key value (image.Meta:0) (error 613) at com.objectdb.jpa.EMImpl.commit(EMImpl.java:277) I check the db by explorer.jar, and find the only one record is id=0. What situation will be id=0? TIA ... persistence . RollbackException Failed to commit transaction : Attempt to reuse an existing primary key value ( ...

 
tutorial

Spring MVC JPA Tutorial - NetBeans Project

Opening a Spring MVC JPA Maven web application project in the NetBeans IDE.... Note: To run the application on GlassFish - change the transaction type from RESOURCE_LOCAL to JTA in the persistence.xml ...

 
forum_thread

null pointer exception in objectdb-2.4.4_06

I have the following stack trace.  Is this a null ptr in our code or in the object db code? ... our code or in the object db code? Failed to commit transaction:  (error 613) at ...

 
forum_thread

Persisting collection where members are subclasses

OK, I have a number of classes which are all subclasses of Entry (e.g., Folder, Link, Book). In the Folder class, there is a @OneToMany Map<String, Entry> children If I store something in that map which is an Entry, then I can persist just fine. But if I try to put any of the subclasses into the map, then I get  ... javax.persistence.RollbackException Failed to commit transaction: Attempt to persist a reference to a non managed ...

 
api-jdo

postDirty(event)

Invoked whenever a persistent instance is first made dirty, during an operation that modifies the value of a persistent or transactional field.(Method of javax.jdo.listener.DirtyLifecycleListener)

 
api-jpa

javax.persistence.QueryTimeoutException

Thrown by the persistence provider when a query times out and only the statement is rolled back.(Exception of JPA)

 
api-jdo

getPersistenceManager(pc)

Return the associated PersistenceManager if there is one.(Method of javax.jdo.spi.StateInterrogation)

 
api-jdo

getTransactionalObjectId(pc)

Return a copy of the JDO identity associated with the parameter instance.(Static Method of javax.jdo.JDOHelper)