ObjectDB Database Search

151-200 of 200 results

Dirty checking

: Ideally I'd like to capture all objects that were changed after a commit, i.e: after the transaction ... lifecycle is being called after each object is changed, separately, in the middle of a transaction ... , because they may not have changed yet in that transaction , and also, the entire transaction could fail. i.e: I'd

How to Use a SF with extended Persistence Context?

Hey, I have a problem to use SF with an Extended Persistence Context Regarding to Transactions ... to the SF I get com.objectdb.o._PersistenceException: Attempt to begin a new transaction when a transaction is active. In principal The SF doesn't need to begin any transaction since it only get called

OutofMemory error with Object DB 2.0

 odb file and inserts 200 records at a time. The transaction obtained from the PersistentManager is commited after persisting 200 records and then the same transaction object from the same PersistentManager is used to begin the transaction . With objectdb 2.x do we need to close the 

Mismatch client-server protocol prefix

. transaction .support.AbstractPlatformTransactionManager.processCommit(AbstractPlatformTransactionManager.java ... : @ Transactional     @Override     public TrackerUser findByName(String ... ? support Support I found some other nice exceptions: @ Transactional     @Override  

Unexpected NoSuchFieldError exception

) java.lang.NoSuchFieldError: __odbTracker 3) Attempt to start a transaction while another transaction is running. In each case, I've found it difficult to figure out where to find the right ... .database.ObjectDbDatabase. transact (ObjectDbDatabase.groovy:82) at app.framework.Database$ transact

Object DB vs EclipseLink/TopLink: Unloaded relationships in detached entities

relationships outside a transaction , once detached, any you won't have needed any of the above required ... the transactional one and when you want to use the entity in a transaction it will have to be properly merged ... context is propagated with the JTA transaction A container-managed persistence context may be defined

Failed to synchronize replicated database

future development. 2. The replication should catch up if all the transactions are available, i.e. transaction recording of the master is available from the moment of the last slave database update ... :-)) And then it is recording the transactions which can be replied to the basepoint. But I did not found

Where Does ObjectDB Block/Lock?

.currentTransaction()? 3) Does it lock at transaction .begin() if optimistic=false?  4) Does it lock at transaction .commit() if optimistic=true? 5) ObjectDB 1.0 Manual (Support Knowledge Base ObjectDB 1.0 Manual 5. JDO Connections 5.3  javax.jdo. Transaction Automatic Lock Management Last sentence) 

Time Sequence Object Command DB

of this database are: Each transaction has a time-stamp which is the time the transaction was added ... in some cases by rolling back transactions ). A transaction contains a set of commands which (in ... down to the leaf. The obvious design solution is to write the transactions to the database in sequence

Pessimistic Lock Timeouts setting

.ProductCodeTracking:1 I have to stress, that the pessimistically locked entity has a transaction propagation of REQUIRES_NEW. But it also fails if part of the original transaction (which has REQUIRED). I ... another transaction (usually in another thread). Notice that pessimistic locks are automatically released

problem with lazy loading - unittest project attached

the optional way to test this, because of the differnt transaction behavior. the test is not transactional , but the spring repository methods are. anyway, the expected result is in the database ... . I don't know much about Spring Data JPA but I noticed that after adding  @ Transactional

Entity can be found by find() but not by query

Hello, we create an entity in transaction A, commit and close the transaction . After that in transaction B we try to find the entity in the DB. But we get always only a result with em.find ... If transaction B started before transaction A committed, and it stored data using flush

Spring + Maven + persitence.xml

exception is org.springframework. transaction .CannotCreateTransactionException: Could not open JPA EntityManager for transaction ; nested exception is com.objectdb.o.InternalException: Unexpected Server Error ... cause org.springframework. transaction .CannotCreateTransactionException: Could not open JPA

Cannot save or update entity on Spring App

I've got this DAO in my Spring App import javax. transaction . Transactional ; @Repository // or @Component @ Transactional public class LanguageRepository { // Injected database connection: @PersistenceContext private EntityManager em; // Stores a new guest: @ Transactional public Language persist

@OneToMany(fetch = FetchType.LAZY) list is always null

Manager { @Resource private UserTransaction transaction ; @PersistenceContext(unitName = "my-pu") private EntityManager entityManager; public void persist(Object o) { try { transaction .begin(); entityManager.persist(o); transaction .commit(); } catch (NotSupportedException e) { e.printStackTrace(); } catch

Database Files

Hi.  According the docs, "Every transaction commit is first written to the recovery file and then to the database".  During my testing, every time I make a transaction the recovery file ... , also stays at the same number even after 100 transactions .   I don't use embedded server by

Improvement in replication

whole cluster. One of possible solution is to choose the one with higher " transaction " or "log ... about is when transaction is in progress and you replicate every single write operation, right?. I think ... , so the user knows that transaction failed. On slave server (and only on them) there can be some

Remove not working

(removed in current transaction ) at com.objectdb.o.JPE.g(JPE.java:94) at com.objectdb.o.ERR.f(ERR ... ;  @ Transactional     public void deleteUnitTest() throws NoResultException {   ... the same transaction . No exception is thrown if em.flush() is invoked before em.remove

Multiple inputs not supported on WHERE ?

my code block :     @CacheEvict("loginsList")     @ Transactional     ... = updateUserEnabledInternal(enabled, sicilNo);          @ Transactional ... ;   at org.springframework. transaction .interceptor.TransactionInterceptor$1

Entity Update - Is the documentation up to date?

transaction .  If I subsequently begin and commit a transaction , all my changes seem to be merged ... been modifying managed entities from outside an active transaction .  If I subsequently begin and commit a transaction , all my changes seem to be merged automatically. The more conventional way

jakarta.persistence.Version

Jakarta Persistence (JPA) Annotation Type jakarta.persistence.Version Implemented Interfaces: Annotation Target: Method, Field Declares the version field or property of an entity class, which is used to detect optimistic lock failures, ensuring the integrity of optimistic transactions . The version

jakarta.persistence.QueryTimeoutException

transaction , if one is active, will be not be marked for rollback. Since: Jakarta Persistence (JPA) 2

jakarta.persistence.TransactionRequiredException

: Serializable Thrown by the persistence provider when a transaction is required but is not active

jakarta.persistence.NonUniqueResultException

transaction , if one is active, to be marked for rollback. See Also: Query.getSingleResult() TypedQuery

jakarta.persistence.NoResultException

and there is no result to return. This exception does not cause the current transaction , if one is active

jakarta.persistence.Persistence

and Transactions article explains how to use Persistence . Public Static Fields PERSISTENCE_PROVIDER

jakarta.persistence.OptimisticLockException

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

jakarta.persistence.PersistenceException

, NonUniqueResultException , LockTimeoutException , and QueryTimeoutException , cause the current transaction

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

jakarta.persistence.EntityTransaction.begin()

Jakarta Persistence (JPA) Method in jakarta.persistence.EntityTransaction void begin() Start a resource transaction . Throws: IllegalStateException - if EntityTransaction.isActive is true. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.PersistenceUnitTransactionType.JTA

Jakarta Persistence (JPA) Enum Constant in jakarta.persistence.PersistenceUnitTransactionType JTA Transaction management via JTA. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.EntityTransaction.commit()

Jakarta Persistence (JPA) Method in jakarta.persistence.EntityTransaction void commit() Commit the current resource transaction , writing any unflushed changes to the database. Throws: IllegalStateException - if EntityTransaction.isActive is false. RollbackException - if the commit fails. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.PersistenceUnitTransactionType.RESOURCE_LOCAL

Jakarta Persistence (JPA) Enum Constant in jakarta.persistence.PersistenceUnitTransactionType RESOURCE_LOCAL Resource-local transaction management. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.EntityTransaction.rollback()

Jakarta Persistence (JPA) Method in jakarta.persistence.EntityTransaction void rollback() Roll back the current resource transaction . Throws: IllegalStateException - if EntityTransaction.isActive is false. PersistenceException - if an unexpected error condition is encountered. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.EntityTransaction.getTimeout()

Jakarta Persistence (JPA) Method in jakarta.persistence.EntityTransaction Integer getTimeout() The transaction timeout. Since: Jakarta Persistence (JPA) 3.2

jakarta.persistence.EntityTransaction.setTimeout(Integer)

Jakarta Persistence (JPA) Method in jakarta.persistence.EntityTransaction void setTimeout (    Integer timeout ) Set the transaction timeout, in seconds. This is a hint. Parameters: timeout - the timeout, in seconds, or null to indicate that the database server should set the timeout Since: Jakarta Persistence (JPA) 3.2

jakarta.persistence.EntityManager.getTransaction()

Jakarta Persistence (JPA) Method in jakarta.persistence.EntityManager EntityTransaction getTransaction() Return the resource-level EntityTransaction object. The EntityTransaction instance may be used serially to begin and commit multiple transactions . Returns: EntityTransaction instance. Throws

jakarta.persistence.EntityManagerFactory.createEntityManager(SynchronizationType)

with the current JTA transaction Returns: entity manager instance. Throws: IllegalStateException

jakarta.persistence.EntityManagerFactory.createEntityManager(SynchronizationType,Map)

- how and when the entity manager should be synchronized with the current JTA transaction map - properties

jakarta.persistence.SynchronizationType.SYNCHRONIZED

Jakarta Persistence (JPA) Enum Constant in jakarta.persistence.SynchronizationType SYNCHRONIZED Persistence context is automatically synchronized with the current transaction Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.SynchronizationType.UNSYNCHRONIZED

Jakarta Persistence (JPA) Enum Constant in jakarta.persistence.SynchronizationType UNSYNCHRONIZED Persistence context must be explicitly joined to the current transaction Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.FlushModeType.COMMIT

Jakarta Persistence (JPA) Enum Constant in jakarta.persistence.FlushModeType COMMIT Flushing to occur at transaction commit. The provider may flush at other times, but is not required to. Since: Jakarta Persistence (JPA) 1.0

Unexpected exception (Error 990) com.objectdb.o.InternalException

(PatternApplicationServiceImpl.java:1) at com.btc.ep.base. transactions .annotations.TransactionAspect.ajc$around$com_btc_ep_base_ transactions _annotations_TransactionAspect$1$adc4043cproceed(TransactionAspect.aj:90) at com.btc.ep.base. transactions .annotations.TransactionAspect.ajc$around$com_btc_ep_base

Best practise loading big data

when it came to transactions with lots of entities. We have a scenario in which we need efficient ... step and in each step value by value. When do this within one transaction without holding ... . One is to stupidly commit the transaction after a certain number of read accesses (every 10000 read access

ArrayIndexOutOfBoundsException on flush

which blew out the logs: Attempt to commit a transaction after failure in writing to database file 'F ... to commit a transaction after failure in writing to database file 'F:\calculationservice\objectdb\dbs ... .objectdb.o.UserException: Attempt to commit a transaction after failure in writing to database file 'F