ObjectDB Database Search

1-50 of 138 results

Database Transaction Replayer

operations. Reproducing problems during debugging by repeating a failure. Recording  transactions ... of a specific transaction . The transaction ID is used as the file name. A recording file, which has the same transaction ID in its name, contains the database operations that were recorded

Attempt to begin a new transaction when a transaction is active

._PersistenceException: Attempt to begin a new transaction when a transaction is active root cause com.objectdb.o._PersistenceException: Attempt to begin a new transaction when a transaction is active root cause com.objectdb.o.UserException: Attempt to begin a new transaction when a transaction is active  

Failed to commit transaction: Attempt to commit a rollback only transaction

Anyone know what this means?? Suddenly cropped up. Failed to commit transaction : Attempt to commit a rollback only transaction (error 613) at com.objectdb.jpa.EMImpl.commit(EMImpl.java:271) at javax.jdo. Transaction $commit.call(Unknown Source)   dmoshal David Moshal Some fatal exceptions mark

Bug with unique constraint exception not resulting in transaction roll back

would expect ObjectDB to roll back the transaction and not persist anything.  ... over more than one transaction . In a managed environment, in which transactions are started and committed ... to see when one transaction is ended and another one begins. if you are sure that there is a problem, you may try

Rollback of several closed transactions

to split a transaction into several transactions . But then we need actually a rollback for several transactions . Is there any possibility in the ObjectDB to rollback several closed transactions ? btc_es BTC EmbeddedSystems You cannot roll back a committed transaction . In that case, you may want

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 ... transaction is committed so all returned entities are not populated with ID in this context

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 ... transactions for updating the content of a database. But if you use Java EE or Spring, the container may manage the transactions automatically. support Support

Is it possible to using JDO and distributed transaction?

I'am new to study JDO. Can and How I use JDO an distributed transaction ?(multiple database ... Reference Documentation       JCA, JTA, and JDO Transactions - Using ... ;    btpka3 ZhangLiangLiang ObjectDB supports distributed transactions and JTA through JPA

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 and between the creations we call a select query. The execution of the query becomes slower at each

com.objectdb.o._RollbackException: Failed to commit transaction

Check the Exception below: (occurs sometimes, ObjectDB 2.3.6_14) com.objectdb.o._RollbackException: Failed to commit transaction : at com.objectdb.o.JPE.g(JPE.java:89) ~[JPE.class:na] at com.objectdb.o.ERR.f(ERR.java:59) ~[ERR.class:na] at com.objectdb.o.OBC.onObjectDBError(OBC.java:1493) ~[OBC

Failed to commit transaction: Attempt to reuse an existing primary key value (613)

.RollbackException Failed to commit transaction : Attempt to reuse an existing primary key value

jakarta.persistence.EntityManager

; If the persistence unit has resource local transaction management, transactions must be managed using ... : EntityManager entityManager = entityManagerFactory.createEntityManager(); EntityTransaction transaction = entityManager.getTransaction(); try { transaction .begin(); // do work ... transaction .commit(); } catch

Storing JPA Entities

, and changes its state to Managed. The new entity is stored in the database when the transaction ... entities. Because operations that modify the database require an active transaction , persist throws a TransactionRequiredException if it is called without an active transaction . An EntityExistsException

jakarta.persistence.EntityManagerFactory

via the PersistenceConfiguration API. Every persistence unit has a transaction type , either JTA , or RESOURCE_LOCAL . Resource-local transactions are managed programmatically via the EntityTransaction interface ... transaction , and call the given function, passing the EntityManager to the function. If the transaction

JPA Lifecycle Events

or access other entities. If a callback method throws an exception during a transaction , the transaction is marked for rollback, and no more callback methods for that operation are invoked. Listeners

Detached JPA Entities

back a transaction , either by calling rollback or when a commit fails. Explicit merge You can merge ... a TransactionRequiredException if you call it without an active transaction , because merging can modify

jakarta.persistence.LockModeType

.OPTIMISTIC_FORCE_INCREMENT are the following. If transaction T1 calls for a lock of type LockModeType ... phenomena can occur: P1 (Dirty read): Transaction T1 modifies a row. Another transaction T2 then reads that row and obtains the modified value, before T1 has committed or rolled back. Transaction T2

jakarta.persistence.EntityTransaction

to control transactions on resource-local entity managers. The EntityManager.getTransaction method returns ... a resource transaction . Throws: IllegalStateException - if isActive is true. Since: Jakarta Persistence (JPA) 1.0 void commit () Commit the current resource transaction , writing any unflushed changes

Database Management Settings

is based on the database file name, with a $ character appended. Every transaction commit is written first

SELECT clause (JPQL / Criteria API)

are not associated with an EntityManager , and changes to them during an active transaction are not

JPA Entity Fields

of a new entity is 1 when it's stored in the database for the first time. In every transaction

Setting and Tuning of JPA Queries

instance, em , are visible to any code that uses em , even before the transaction is committed

Index Definition

, which prevents duplicate values in the indexed field. If you try to commit or flush a transaction

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

jakarta.persistence.PersistenceUnitTransactionType

: Constable , Comparable , Serializable Enumerates the possible approaches to transaction management in Jakarta Persistence. An EntityManager may be a JTA entity manager, where transaction management is done via JTA, or it may be a resource-local entity manager, where transaction management is performed

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 ... DBVectorStepBlockCollectionImpl was modified and then the transaction will be committed. em.getTransaction ... which hold much memory, if we execute several transactions on the identical entity manager

jakarta.persistence.FlushModeType

within a transaction , if AUTO is set on the Query or TypedQuery object, or if the flush mode setting ... is unspecified. If there is no transaction active or the persistence context is not joined to the current transaction , the persistence provider must not flush to the database. See Also: EntityManager

jakarta.persistence.TypedQuery.getResultStream()

and the transaction is rolled back. LockTimeoutException - if pessimistic locking fails ... and the transaction is rolled back. TransactionRequiredException - if a lock mode other than NONE has been set and there is no transaction or the persistence context has not been joined

jakarta.persistence.TypedQuery.getSingleResult()

fails and the transaction is rolled back. NoResultException - if there is no result. PersistenceException - if the query execution exceeds the query timeout value set and the transaction is rolled ... and there is no transaction or the persistence context has not been joined to the transaction . Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.TypedQuery.getSingleResultOrNull()

back. PessimisticLockException - if pessimistic locking fails and the transaction is rolled back. PersistenceException - if the query execution exceeds the query timeout value set and the transaction is rolled ... and there is no transaction or the persistence context has not been joined to the transaction . Since: Jakarta Persistence (JPA) 3.2

jakarta.persistence.TypedQuery.getResultList()

- if pessimistic locking fails and the transaction is rolled back. LockTimeoutException - if pessimistic locking ... the query timeout value set and the transaction is rolled back. TransactionRequiredException - if a lock mode other than NONE has been set and there is no transaction or the persistence context has not

jakarta.persistence.LockTimeoutException

transaction rollback. This exception may be thrown as part of an API call, at, flush or at commit time. The current transaction , if one is active, will be not be marked for rollback. Since: Jakarta Persistence

jakarta.persistence.EntityExistsException

. The current transaction , if one is active, will be marked for rollback. If the entity already exists ... the EntityExistsException or another PersistenceException may be thrown at flush or commit time. The current transaction

jakarta.persistence.StoredProcedureQuery.executeUpdate()

- if the query execution exceeds the query timeout value set and the transaction is rolled back. TransactionRequiredException - if there is no transaction or the persistence context has not been joined to the transaction . QueryTimeoutException - if the statement execution exceeds the query timeout

jakarta.persistence.PersistenceConfiguration.transactionType()

Jakarta Persistence (JPA) Method in jakarta.persistence.PersistenceConfiguration PersistenceUnitTransactionType transactionType() The transaction type . If PersistenceUnitTransactionType.JTA , a JTA ... via PersistenceConfiguration.nonJtaDataSource . Returns: the transaction type. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.PersistenceContext.type

Jakarta Persistence (JPA) Method in jakarta.persistence.PersistenceContext PersistenceContextType type (Optional) Specifies whether a transaction -scoped persistence context or an extended persistence context is to be used. Default: PersistenceContextType. TRANSACTION Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.PersistenceContext.synchronization

synchronized with the current transaction or whether the persistence context must be explicitly joined to the current transaction by means of the EntityManager.joinTransaction method. Default

jakarta.persistence.PessimisticLockException

may be thrown as part of an API call, a flush or at commit time. The current transaction , if one is active

jakarta.persistence.EntityNotFoundException

and the entity no longer exists in the database. The current transaction , if one is active

Step 6: Set the Spring XML

and transactions ), to inject a JPA  EntityManager , to manage transactions and to look for JSP pages in

Step 6: Set the Spring XML

, controllers and transactions ), to inject a JPA EntityManager , to manage transactions and to look

jakarta.persistence.StoredProcedureQuery.execute()

the query timeout value set and the transaction is rolled back. QueryTimeoutException - if the query

jakarta.persistence.StoredProcedureQuery.hasMoreResults()

the query timeout value set and the transaction is rolled back. QueryTimeoutException - if the query

jakarta.persistence.StoredProcedureQuery.getUpdateCount()

and the transaction is rolled back. QueryTimeoutException - if the query execution exceeds the query

jakarta.persistence.StoredProcedureQuery.getResultList()

and the transaction is rolled back. QueryTimeoutException - if the query execution exceeds the query timeout

jakarta.persistence.StoredProcedureQuery.getSingleResult()

and the transaction is rolled back. QueryTimeoutException - if the query execution exceeds the query

jakarta.persistence.StoredProcedureQuery.getSingleResultOrNull()

and the transaction is rolled back. QueryTimeoutException - if the query execution exceeds the query timeout

Step 4: Add a Servlet Class

" attribute to generate the page output. Finally, the database connection (including the transaction

Step 1: Create a Maven Web Project

. transaction jta 1.1 javax.servlet servlet-api 2.5 provided javax.servlet.jsp jsp-api 2.1 provided org

Step 1: Create a Maven Web Project

;      javax. transaction      jta      1.1