ObjectDB Database Search

1-50 of 200 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

JPA Connections and Transactions

transactions . Transactions are managed by an EntityTransaction instance, which is obtained from ... the database (such as storing, updating, or deleting data) must be performed within an active transaction . The EntityTransaction interface represents and manages database transactions . Each EntityManager

jakarta.persistence.PersistenceContextType.TRANSACTION

Jakarta Persistence (JPA) Enum Constant in jakarta.persistence.PersistenceContextType TRANSACTION Transaction -scoped persistence context Since: Jakarta Persistence (JPA) 1.0

Spring Transactions (@Transactional) within ObjectDB

Hi, We are using OBD with Spring and transactions are managed by Spring. Our spring service interfaces take list of objects and persist them and the interface service is marked as @ Transactional ... object we don't get it back on lookup. This is with transactions we are not able to retrieve

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

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 it doesn´t. I tried transaction .flush() in combination with transaction .refresh(entity

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

transactions which is called by a trivial servlet. Inside a UserTransaction I add a number of items then check ... context = new InitialContext();    javax. transaction .UserTransaction tx = (javax. transaction ... transaction I find it, even though I don't set the FlushMode. So in that case I can see the results

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

JPA Core Types

lifecycle, database connections, and transactional contexts within your application. The following diagram ... for each thread to maintain isolated transactional contexts. Controls resource-local transactions in ... back transactions . Utilities and Caching Access metadata, manage schema, and interact with the second-level

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

Obtaining a JPA Database Connection

within an active transaction . Given an EntityManager instance named em , you can begin a transaction : em ... and the EntityTransaction instance that the getTransaction method returns. When a transaction is active ... when the transaction is committed: em. getTransaction (). commit (); The next section explains in

Deleting JPA Entities

the database, you must first retrieve it. Then, within an active transaction , call the remove method ... ); em. getTransaction (). commit (); The entity is deleted from the database when the transaction is committed. Any embedded objects that the entity contains are also deleted. If the transaction is rolled

DELETE Queries in JPA/JPQL

within an active transaction , either explicitly by calling the remove method or implicitly through a cascading ... within an active transaction . The changes become visible to other users (who use other EntityManager instances) only after the transaction is committed. Delete all queries The simplest DELETE query removes

JPA Container Injection Annotations

a shared, thread-safe proxy associated with the current transaction . Specifies the lifetime scope of the persistence context: TRANSACTION (default) or EXTENDED (spanning multiple transactions

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.TypedQuery

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 ... DELETE statement. PessimisticLockException - if pessimistic locking fails and the transaction

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

Auto Generated Values

; : } When a transaction is committed, the AUTO strategy uses the global number generator to generate

Retrieving JPA Entities

Jakarta Persistence (JPA) provides various ways to retrieve objects from the database. Retrieving objects does not require an active transaction because it does not change the database content. The persistence context serves as a cache for retrieved entities. If a requested entity is not in

Privacy Policy

of Your data and other personal information. Disclosure of Your Personal Data Business Transactions

JPA Runtime Tuning & Configuration

only at transaction commit). Scope Usage EntityManager setFlushMode(FlushModeType) Query setFlushMode

What is ObjectDB?

ObjectDB is an Object Oriented Database Management System (ODBMS). It provides all the standard database management services (storage and retrieval, transactions , lock management, query processing, etc.), but it uses an object oriented model to store and manage data. You can easily store ordinary

Running JPA Queries

(); A TransactionRequiredException is thrown if no transaction is active. On success, the executeUpdate() method returns

[ODB1] Chapter 6 - Persistent Objects

object becomes persistent during an active transaction , its content is automatically stored in the database when the transaction is committed (unless it is being deleted before commit). An attempt to call makePersistent( ... ) when there is no active transaction throws an exception, because operations

jakarta.persistence.EntityManagerFactory.runInTransaction(Consumer)

transaction , and execute the given function, passing the EntityManager to the function. If the transaction type of the persistence unit is JTA, and there is a JTA transaction already associated with the caller, then the EntityManager is associated with this current transaction . If the given function

jakarta.persistence.EntityManagerFactory.callInTransaction(Function)

transaction , and call the given function, passing the EntityManager to the function. If the transaction type of the persistence unit is JTA, and there is a JTA transaction already associated with the caller, then the EntityManager is associated with this current transaction . If the given function returns

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

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 ... explanation on the change in build 2.7.4_04: ObjectDB uses snapshots in order to isolate transactions , i.e. to hide uncommitted flush changes of one transaction from other transactions , but still make

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

Step 3: Define a Spring DAO Component

. transaction .annotation. Transactional ; @Component public class GuestDao { // Injected database connection: @PersistenceContext private EntityManager em; // Stores a new guest: @ Transactional public ... transactions automatically for methods that are annotated with the  @ Transactional annotation

Step 3: Define a Spring DAO Component

.springframework. transaction .annotation. Transactional ; @Component public class GuestDao { // Injected database connection: @PersistenceContext private EntityManager em; // Stores a new guest: @ Transactional public ... transactions automatically for methods that are annotated with the @ Transactional annotation, saving

[ODB1] Chapter 2 - A Quick Tour

// Create or open a database and begin a transaction : 12 PersistenceManager pm = 13 Utilities ... .hasNext()) 34 System.out.println(itr.next()); 35 36 // Close the transaction and the database: 37 pm ... the content of the database, a transaction is begun (line 14), because in JDO, operations that affect

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

Step 3: Define an EJB Session Bean

(because it is annotated with the  @PersistenceContext annotation). Handles transactions automatically using ... transaction   begin and  commit . The next step is adding a Servlet Class that will serve as the application controller.

[ODB1] Chapter 9 - ObjectDB Explorer

manages an active transaction for every open database file. All editing operations (including ... , associated with the active transaction . The "File | Save" menu command (and the equivalent toolbar button) commits the transaction which applies all the changes to the database. The "File | Discard Changes

[ODB1] Chapter 3 - Persistent Classes

when a persistent field is modified during a transaction because the change must be applied to the database when the transaction is committed. ObjectDB must also know when a persistent field is accessed ... is going to be stored in the database during transaction commit. A possible action is to apply last

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   

ObjectDB 1.0 Manual

and transactions in JDO. Chapter 6 - Persistent Objects Shows how to store, retrieve, update