ObjectDB ObjectDB

Internal Website Search

41-50 of 200 resultsRefresh
116

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
115

Attempt to begin a new transaction when a transaction is active

persisted"); } } Persistence unit looks like this : <persistence-unit name="recordPU" transaction ... ._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
113

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
34

Updating JPA Entity Objects

from inside an active transaction: Employee employee = em.find(Employee.class, 1); em ... (); The entity object is physically updated in the database when the transaction is committed. If the transaction is rolled back and not committed the update is discarded. On commit the persist operation
26

objectdb-2.6.9_06: Extended Persistence Context fails: 'Attempt to begin a new transaction when a transaction is active'

[]: buildProject: em.transaction.isActive(true) Info: ExtRequestBean []: Created: com.greensoft ... ._PersistenceException: Attempt to begin a new transaction when a transaction is active at com.sun.ejb ... .transaction == null"); } else { EntityTransaction t = em.getTransaction
21

Locking in JPA

separately. Optimistic locking is applied on transaction commit. Any database object ... by another transaction. When using ObjectDB, optimistic locking is enabled by default and fully ... must be revealed earlier (before transaction commit) pessimistic locking can be used. When using
20

CRUD Operations with JPA

Explains how to use JPA for CRUD database operations (persist, retrieve, update, remove).
20

Chapter 3 - Using JPA

Explains how to store, retrieve, update and delete entity objects using JPA.
2

[ODB1] Chapter 2 - A Quick Tour

[] args) { 10 11 // Create or open a database and begin a transaction: 12 ... System.out.println(itr.next()); 35 36 // Close the transaction and the database ... automatically. To enable updating the content of the database, a transaction is begun (line 14
2

javax.jdo.JDOEntityManager

. This method has no effect if a transaction is not active. If a datastore transaction is active ... transaction is active, this method obtains a datastore connection and verifies the consistency ... query is found to be invalid Since: JPA 2.0 Transaction currentTransaction() Return the Transaction

Getting Started

ObjectDB is very easy to use. Follow the Getting Started Tutorial and the Quick Tour manual chapter and in minutes you may be able to write and run first Java programs against ObjectDB.

Prior knowledge or experience in database programming (SQL, JDBC, ORM, JPA, etc.) is not required, but some background in using the Java language is essential.

Need Help?

  1. Search ObjectDB website
  2. Read the FAQ
  3. Follow the Tutorials
  4. View or post in the forum
  5. Search or file an issue
  6. Contact support