Home » Search

About update

131-140 of 200Refresh
Forum
2

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
2

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
2

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

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
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

Access entity version before commit transaction

Hi, I have a usecase where I need to write the updated entity version to the database before ... containing the new version of the entity So I need to access the version of an updated entity inside ... of the entity ObjectDB seems to update the version field automatically. But if I just set a String
Issue
1

ArrayIndexOutOfBoundsException on flush

in early versions of ObjectDB 2.x where related to managing large objects. Do you use update queries? Update queries are new and maybe they do not handle large objects correctly. I've uploaded the odr ... being the cause - i will reapply this update as the same problem seems to occur...) I updated to 2