ObjectDB Database Search

101-150 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) 

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

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

jakarta.persistence.EntityManager.refresh(Object)

- if there is no transaction when invoked on a container-managed entity manager of type PersistenceContextType. TRANSACTION . Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.EntityManager.refresh(Object,Map)

- if there is no transaction when invoked on a container-managed entity manager of type PersistenceContextType. TRANSACTION . Since: Jakarta Persistence (JPA) 2.0

jakarta.persistence.NamedQuery.lockMode

.NONE is specified, the query must be executed in a transaction and the persistence context joined to the transaction . Default: LockModeType.NONE Since: Jakarta Persistence (JPA) 2.0

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

evictAll() behavior

-- is this correct 2. the evicts only work when they are done inside a transaction -- is this specified ... () You have to invoke refreshAll inside a transaction , because according to the JDO specification - "When called with a transaction active, the refreshAll method with no parameters causes

Multi-tenant capability with hierarchies

method before every db call. But then the @ Transactional isn't working any more and I have to do the transaction management myself. Which figures because the @ Transactional uses ... the normal entityManager bean and the Transactional annotation? Kevin Kevin Pfaff Possible way

Replication error on slave restart

get over a million transactions . mastervoland Vladimir Sadovnikov You should only enable recording for the master ... using clean DB (with recording from transaction 1) when I restarting slave server. ...and I updated ... and Run Application on master (new DB file, no transactions for now) 3) Start ODB Server on slave. 4

jakarta.persistence.PessimisticLockException

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

jakarta.persistence.EntityNotFoundException

and the entity no longer exists in the database. The current transaction , if one is active

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

Optimistic locking: prevent version increment on entity collection attribute

constructor and we are still in the same transaction (before any commit or rollback). In the debugger ... . Also, each of my calls to the server is made in a transaction (the entry point in the servlet is annotated with @ Transaction for that purpose) so not sure how Documents found by query in

Incremental online backup

, this is the expected behaviour. You may also find the Transaction Replayer useful in this scenario. support Support Isn't the Transaction Replayer more like the opposite of this? The Transaction Replayer allows to replay transactions on a backup DB to replay a test scenario or bring back a backup

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