About change

forum_thread

NegativeArraySizeException on commiting a transaction

Hi, we started to get a java.lang.NegativeArraySizeException from ObjectDB upon changing an object in the DB and committing the transaction. I tried to repair the DB file with Database Doctor, but the same error is happening also on the fixed DB file. Btw. during fixing the DB file an Internal error was thrown (details here: http://www.objectdb.com/database/issue/285 ), but the fixing went on and created a new file. #1 2016-11-12 08:08 Hi, we started to get a java.lang.NegativeArraySizeException from ObjectDB upon changing an object in the ...

 
forum_thread

Remove a modified entity cause an optimistic lock exception

Hello, the following examples load and modify an entity, and load and remove the same entity. The first example 'SetAndRemoveIssue.java' is a simple java program which executes without errors. The second example is an OSGi program which fails with an optimistic lock exception. Both examples are equivalent, please execute SetAndRemoveIssue.java (in the OSGi example as a plugin-test). Can you explain the optimistic lock exception? #1 2015-11-09 07:46 Hello, the following examples load and modify an entity, and load and remove the same entity. The ...

 
forum_thread

Optimistic Locking

We are having problems with optimistic locking.  I made a simple test case to try to induce an optimistic lock.... They both read and display the same data.  Then I change the data with user 1 and submit, and then I change it with user 2 and submit. User 2 does not get an optimistic lock ...

 
forum_thread

How storage works?

I have one Class Car that contains a ArrayList of Wheels. I have already one Car with 4 Wheels 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 #1 2011-09-15 10:26 I have one Class Car that contains a ArrayList of Wheels. I have already one Car with 4 Wheels attached s ...

 
forum_thread

Managing software release cycles.

How do you manage software release cycles with objectDB? For example we might have different installation of a given web application, and we might need to introduce new fields with default values or to change something in the database "structure".  How can we apply the update script without downloading the entire DB file? Are there any command line tools like sqlPlus to connect to a DB and execute queries / scripts? ... need to introduce new fields with default values or to change something in the database "structure".  How can we apply the ... and they will have default values. > or to change something in the database "structure". See the following manual ...

 
api-jdo

getObjectId(pc)

The ObjectId returned by this method represents the JDO identity of the instance.(Method of javax.jdo.PersistenceManager)

 
forum_thread

index - data rewrite

Hi we have found that applying indexes on an existing table erases the data. Are we doing something wrong. Thanks ... changed a name of a field (without declaring the schema change )? What data is missing? Complete objects? specific fields in ...

 
forum_thread

Updating existing persistence entries

I have stored some instances of MyObject via em.persist(myObjectInstance); I can fetch them and bind them to a kind of property editor in my app (it simply calls the setters to reflect gui editing actions). When I try to persist a object later on, I get an error like com.objectdb.o.UserException: Attempt to reuse an existing primary key value which makes sense to me but I'm missing a em.update() method. ... least I know of) to do something before and after a value change. I'm checking out ObjectDB as a thin replacement to ...

 
forum_thread

Dependency from enhanced classes to the objectDB library

Hello, we have a Question to the dependency from enhanced classes (required for license) to the objectDB library.... Hello, we don’t know how we must change the ContextClassLoader that is works. All our experiments have failed. ...

 
manual

[ODB1] Chapter 8 - ObjectDB Server

An ObjectDB server can manage one or more databases. Databases that are managed by a server can be accessed by multiple processes simultaneously. In addition, the server supports accessing these databases from remote machines by TCP/IP. More details about client server mode vs. embedded database mode are discussed in Section 1.2.... specified above) indicates a check every 30 seconds. If a change is found, the new configuration is loaded automatically without having ...