About transaction

81-90 of 200Refresh
Forum
14

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
13

Threaded Test - Failed to commit transaction: Unexpected internal exception

Threaded Test - Failed to commit transaction: Unexpected internal exception
JDO Doc
13

javax.jdo.Constants

to specify that transactions are managed by the Java Transactions API, as documented in JSR-220. The value for TransactionType to specify that transactions are managed by the Java Transactions API, as ... .supportedOptions() String OPTION_TRANSACTIONAL_TRANSIENT "javax.jdo.option.TransientTransactional
JPA Doc
13

JPA Exceptions

, an attempt to update the database with no active transaction is represented by: Database update failures that require transaction rollback are represented by: The RollbackException exception usually ... ) . For example, if a transaction fails because of an attempt to store a new entity object with a primary
Manual
13

DELETE Queries in JPA/JPQL

transaction, either explicitly by calling the remove method or implicitly by a cascading operation ... queries can only be executed within an active transaction and the changes are visible to other users ... (); A TransactionRequiredException is thrown if no transaction is active. On success - the executeUpdate method
Manual
13

UPDATE SET Queries in JPA/JPQL

objects into an EntityManager. Updating the relevant entity object fields within an active transaction ... queries can only be executed within an active transaction and the changes are visible to other users ... (); A TransactionRequiredException is thrown if no transaction is active. On success - the executeUpdate
Manual
13

UPDATE SET Queries in JPA/JPQL [2011-11-22]

objects into an EntityManager. Updating the relevant entity object fields within an active transaction ... queries can only be executed within an active transaction and the changes are visible to other users ... (); A TransactionRequiredException is thrown if no transaction is active. On success - the executeUpdate
Manual
13

Detached Entity Objects

method, which clears an EntityManager's persistence context. Rolling back a transaction - either by ... transaction when merge is called because operations that might modify the database require an active transaction. Cascading Merge Marking a reference field with CascadeType.MERGE (or CascadeType
Tutorial
10

Step 3: Define an EJB Session Bean

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

How to upgrade from ObjectDB 1.0?

. ObjectDB 2.0 uses optimistic transactions by default (the default was datastore transactions in