Home » Search

About update

131-140 of 200Refresh
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
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
Forum
1

Optimistic locking: prevent version increment on entity collection attribute

. Otherwise the version will be updated, and currently you cannot disable this update. Could you please explain the reason for avoiding this object version update? Thank you for this. I will try it and will let ... of the parent entity to be updated because order lines are an intrinsic part of the order. In the case
Issue
1

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

.class, 1).embeddable;         System.gc();         // Update the embeddable:                  em.getTransaction().begin();         embeddable.update();         em.getTransaction().commit ... ();     }         @Embeddable     public static class MyEmbeddable {         int x;         void update
Forum
1

Java 9 support

resulted.  (Roughly speaking, installer shrunk about 50%, load time about 25% faster, updates about 50% smaller and one update shrunk from 75 MB to 1 MB!) Thank you to ObjectDB for providing early support ... . Thank you for the update. If you can provide more details, including sharing the ObjectDB 2.7.2_05