About Transactional

71-80 of 200Refresh
Forum
19

Query problem after transaction commit

I have a machine running the objectdb server and the client on another machine connect to it. The client program can connect to the server and query to get all the records. However, after transaction.begin ... persist(p) .. commit of a new object, my client program can no longer retrieve the old
Forum
19

Querys without Transaction

Hello, are querys faster, if we use the entity manager without transaction, since we need only read-only entities. There is no much difference, but report queries, i.e. queries that return simple value fields rather than entity objects are more efficient as they eliminate the need to manage entity
Issue
18

Threaded Test - Failed to commit transaction: Unexpected internal exception

Threaded Test - Failed to commit transaction: Unexpected internal exception
Tutorial
18

Step 3: Define a Spring DAO Component

.transaction.annotation.Transactional; @Component public class GuestDao { // Injected database ... : @Transactional public void persist(Guest guest) { em.persist(guest ... field (because it is annotated with the @PersistenceContext annotation). Handles transactions
Tutorial
18

Step 3: Define a Spring DAO Component

.TypedQuery; import org.springframework.stereotype.Component; import org.springframework.transaction.annotation.Transactional; @Component public class GuestDao { // Injected database connection: @PersistenceContext private EntityManager em; // Stores a new guest: @Transactional
Tutorial
18

Step 6: Set the Spring XML

> transaction-manager="myTxManager" />
Tutorial
18

Step 6: Set the Spring XML

>
Manual
18

Working with JPA Entity Objects [2011-04-18]

via an EntityManager’s persist method, which must be invoked within an active transaction. On transaction commit ... Entities section. If a managed entity object is modified within an active transaction the change is detected by the owning EntityManager and the update is propagated to the database on transaction
Manual
18

Working with JPA Entity Objects

via an EntityManager’s persist method, which must be invoked within an active transaction. On transaction commit ... Entities section. If a managed entity object is modified within an active transaction the change is detected by the owning EntityManager and the update is propagated to the database on transaction
Manual
16

Deleting JPA Entity Objects

transaction, it can be deleted using the remove method: Employee employee = em.find(Employee.class, 1 ... (); The entity object is physically deleted from the database when the transaction is committed. Embedded objects that are contained in the entity object are also deleted. If the transaction is rolled