About Transaction

41-50 of 200Refresh
Manual
23

Storing JPA Entity Objects

and changes its state to Managed. The new entity object is stored in the database when the transaction ... field values). A TransactionRequiredException is thrown if there is no active transaction when persist is called because operations that modify the database require an active transaction. If the database
Issue
22

Use temporary files to enable very large transactions

We have transactions in which many objects are created. These objects are no longer needed in the current transaction after creation. Unfortunately, we will receive an OutOfMemory exception ... .com/database/forum/921 on post #4 you wrote, that ObjectDB should support very large transactions in
Forum
22

Access entity version before commit transaction

commiting the transaction: 1. Change entity field e.g. from a to b 2. Create a change entry in database ... the transaction before commiting it. How can I achieve this? If I add something to a collection field ... field it doesn´t. I tried transaction.flush() in combination with transaction.refresh(entity
Issue
21

Removed entities can be found by query in the same transaction

Hello, we opened a transaction, load an entity from database and removed this entity by em.remove ... : ObjectDB uses snapshots in order to isolate transactions, i.e. to hide uncommitted flush changes of one transaction from other transactions, but still make them available to that transaction
Forum
21

Visibility of changes in Transaction is not visible to a JPA QL Query

I have two simple Entities ( see attachment ) and a simple SLSB with container managed transactions ... InitialContext();    javax.transaction.UserTransaction tx = (javax.transaction.UserTransaction) context ... ();   } catch   The problem is that the items that I add in the transaction are not visible when I
Forum
21

Performance in large transactions

Hello, we have a performance problem when we use a large transaction. Let's do exactly the same in several transactions the ObjectDB works much faster. In our use case, we create many new entities ... (FlushModeType.AUTO); EntityTransaction transaction = entityManager.getTransaction
Forum
20

javax.transaction.Synchronization with Java SE 10.0.1

/transaction/Synchronization     at java.base/java.lang.ClassLoader.defineClass1(Native Method ... ) Caused by: java.lang.ClassNotFoundException: javax.transaction.Synchronization     at java.base ... with this footprint [module java.transaction, location=jrt:/java.transaction] and within this module
Issue
20

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
20

Bug with unique constraint exception not resulting in transaction roll back

ObjectDB to roll back the transaction and not persist anything.  However, it is persisting both entities. This could happen if the operation is spread over more than one transaction. In a managed environment, in which transactions are started and committed by the application server and not
Forum
20

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