Home » Search

About Transactional

61-70 of 200Refresh
Forum
15

Cannot catch a PersistenceException and continue the transaction

the transaction as one that need to be rolled back. I understood that I can overcome it in several ways but those don't work for me. Begin a new (nested) transaction in another method that will be rolled back instead of the first one- doesn't work. I got a message that it couldn't begin a new transaction
Issue
15

Query in nested transaction returns detached entity if lazy-loaded

new objects that have been persisted by other transactions from within a transaction ... manages flushed transactions as a snapshot of the database when flush occurs. Build 2.7.4_04 includes ... in our tool. Caused by: com.objectdb.o._RollbackException: Failed to commit transaction: Optimistic
Forum
15

One transaction or two?

is it more efficient to do everything in one transaction or two? Currently my code looks like ... and adds into separate transactions? I think I remember reading in another forum post that you recommended this, I just wanted to clarify. Actually one transaction eliminates some overhead
Forum
15

Transaction isolation support?

have been unable to find any documentation about how transaction isolation is handled. For example: What happens If I am reading data in transaction A, and then transaction B commits while A is reading ... their own transaction, and the answer would thus depend on the the selected isolation level for the transaction in
Issue
15

ODB-FileWriter holds unecessary entity reference after transaction and entity manager are closed

a transaction (including the entity manager) the ODB file writer still holds a reference to entities ... are enhanced. The entity DBVectorStepBlockCollectionImpl was modified and then the transaction ... , if we execute several transactions on the identical entity manager. Also triggering the Garbage
JPA Doc
15

javax.persistence.EntityManager

). If this method is called when the entity manager is associated with an active transaction, the persistence context remains managed until the transaction completes. Throws: IllegalStateException - if the entity ... : the PessimisticLockException will be thrown if the database locking failure causes transaction-level rollback
Issue
15

Persist & remove in same transaction

I have a test case (attached) which performs the following actions: Open a new transaction Create & persist a simple entity object, EntityManager is flushed, Transaction is not committed Count ... Remove the entity object, EntityManager is flushed & cleared, Transaction is not committed Count
Forum
15

Populating entity id before transaction commit

Hi, I have a question about populating auto generated id before transaction commit. We are using OBD with Spring and transactions are managed by Spring. The problem is, that we have custom annotation ... transaction is committed so all returned entities are not populated with ID in this context. How can I
Issue
15

Unexpected exception (Error 990) - Merge with no Transaction

I am frequently having an error when merging a detached object outside of a transaction ... transaction when NontransactionalWrite is disabled: com.fastmodel.fastplan.db.experiments.ErrorTest ... with no active transaction when NontransactionalWrite is disabled: com.fastmodel.fastplan.db.experiments
Forum
15

Update entity without first opening a transaction

Hi everyone, I want to update an entity in my program without having to open a transaction, do the modifications and commit the transaction. I want to have a managed entity that is in sync ... should be updated immediately. How can I get this done? JPA requires using transactions for updating