About Transaction

forum_thread

OptimisticLockException

Have read read the documentation on optimistic locks, still not sure how to deal with these exceptions: [ObjectDB 2.2.5_04] javax.persistence.RollbackException Failed to commit transaction: Optimistic lock failed for object   ... javax.persistence.RollbackException Failed to commit transaction: Optimistic lock failed for object   ... with this problem. are you saying that, for every transaction, I need to handle the optimistic lock by manually refreshing each ...

 
api-jpa

javax.persistence.FlushModeType

Flush mode setting.(Enum of JPA)

 
issue

NullpointerException when execute a commit

Hello, following exception occurs when using objectdb: ... com.objectdb.o.UserException: Failed to commit transaction: Unexpected internal exception at ...

 
tutorial

Step 6: Set the Spring XML

Explains how to set XML in an Eclipse Spring MVC JPA web application project.... > </bean >   <!-- Add Transaction support --> <bean id = "myTxManager" class ... /> </bean >   <!-- Use @Transaction annotations for managing transactions --> <tx:annotation-driven transaction-manager = "myTxManager" />   <!-- View ...

 
api-jdo

getRestoreValues()

Return the current value of the restoreValues property.(Method of javax.jdo.Transaction)

 
api-jdo

getObjectId(pc)

The ObjectId returned by this method represents the JDO identity of the instance.(Method of javax.jdo.PersistenceManager)

 
api-jdo

setRetainValues(retainValues)

If true, at commit instances retain their values and the instances transition to persistent-nontransactional.(Method of javax.jdo.Transaction)

 
api-jdo

jdoGetTransactionalObjectId()

Return a copy of the JDO identity associated with this instance.(Method of javax.jdo.spi.PersistenceCapable)

 
tutorial

Step 6: Set the Spring XML

Explains how to set XML in a NetBeans Spring MVC JPA web application project.... > </bean >   <!-- Add Transaction support --> <bean id = "myTxManager" class ... /> </bean >   <!-- Use @Transaction annotations for managing transactions --> <tx:annotation-driven transaction-manager = "myTxManager" />   <!-- View ...

 
forum_thread

Issue with orphanRemoval and multiple EntityManagers

Hi, We have a problem where our database size grows over time more than expected. We've traced it down to the following issue: ... set to true. I use a new EntityManager for each transaction (which normally happens in multithreaded application). When I create a child entity in one transaction and then remove it in another transaction, the database still contains 1 child entity. If I remove it and add ...