Home » Search

About update

131-140 of 200Refresh
Forum
2

Entity object parameter in Explorer parameter

Hello, I cannot set an entity object in a parameter for a bulk update in the explorer query ... the SET clause. For example, in the query: UPDATE Account dep SET dep.status=:a WHERE dep.status=:b  Parameters:  a:    Status#10002 b:    Status#10003 That query updates all accounts with status
Forum
1

How storage works?

attached stored in the DB. If I update my Car adding a new Wheel object is all the Car updated? Or only changed part is updated? By other words, If I have one complex data model and only one part is changed, the Object DB stored the all complex data model or only the changed part? Thanks If you update
Forum
1

How to do multithreading with embedded ObjectDB

();                     em.getTransaction().begin();                     //Query q = em.createQuery("UPDATE Point SET x = x + 1");                     Query query = em.createQuery("UPDATE Point SET x = x + 1 ... one of the following ways: 1. Synchronize your update queries, so they will be executed sequently
Issue
1

InternalException

the following actions in a loop: Open a new transaction Load an object from the database Update the object Commit the transaction, storing the updates. When the app is finished with the object ... the transaction, storing the updates. If another thread has updated the same object the RollbackException
Forum
1

Modifier operations

(ClassWithList.class, "field_list", value); What do you guys think about it?   You can use a JPQL update query to increase a field value without fetching it:     Query query = em.createQuery(      "UPDATE WebVisit v SET v.visitsCount = v.visitsCount + 1");     query.executeUpdate(); Update queries
Forum
1

ODB IndexActivation NullPointerException

schema change or any other hint? Small update: We think a workarround (but not usefull) is to create ... A. This thread update the Metamodel, and then close the entityManager. (UpdateMetamodel: call for each ... the Metamodel and the IndexActivation. Thank you for the update. We will follow your scenario description
Forum
1

Problem on JPA Merge Entity.

). The statement update don't throw exception. And when i try to reload statement the value i have set before ... update. The statement's property is typed by a class that is a superclass of the newSingleValue ... database, create a new component, save new component, assign component to statement and update
Forum
1

how to operate with same object but two different Thread on database.

Hi,    i have two thread one is for insert data another is for update data but in same object ... , create object of Gettersettetclass, i.e insert operation and pass that object to update.java class. Update.java Here i want create another thread define a method which is for update operation. and i
Issue
1

Can't open replicated database

(just read, no update) but it fails with the error below. The code I'm using is (user & password ... call. The exception is: [ObjectDB 2.2.8] javax.persistence.PersistenceException Attempt to update types in ... .UserException: Attempt to update types in read only mode at com.objectdb.o.MSG.d(MSG.java:61) at com
Forum
1

Optimistic Locking

and updates the Counter:   PersistenceManager pm1 = pmf.getPersistenceManager(); Counter c1 = pm1 ... (); // Second user retrieves and updates the Counter:   PersistenceManager pm2 = pmf ... each user should have its own PersistenceManager and the update must be based on the object