About change

forum_thread

Compare old and new schema

Hello, I have an old database file with important data. Over time, I have modified some of the entity classes but did not keep track of the changes. Some fields may have been renamed or removed, some classes may have been renamed or changed package. Is there a way for me to check what "format" the entity classes have in the old database file and compare that with the new classes definitions?   Thanks, farid #1 2015-02-13 13:10 Hello, I have an old database file with important data. Over time, I have modified some of the entity cla ...

 
manual

[ODB1] Chapter 6 - Persistent Objects

Shows how to store, retrieve, update and delete database objects. ... used to manipulate the garbage collector thread (i.e. to change priority, to wait until it finishes, and so on). Even if you do not ... Changing Object States An object's state can change either implicitly or explicitly. Implicit changes occur when its fields ...

 
release

2.2.3

Release date: 2011-04-29 Download (5.07 MB) Binary:  objectdb-2.2.3.zip You should start by following a  tutorial or reading the manual ...

 
forum_thread

@ElementCollection Set<Integer> is emptied sometimes

Hi! I'm facing a really strange behavior, which I can't yet reproduce, but it happened 3-4 times already. ObjectDB seems to clear some fields that are @ElementCollection Set<Integer> of my objects. They appear HashSet<Integer> in ObjectDB Explorer. The only common thing I've seen is that this MAY happen when schema changes, even though nothing is changed in that Object's class. Any ideas why would this happen and how could it be avoided? Thanks (version 2.5.3 & Tomee & NetBeans) #1 2013-09-13 08:10 Hi! I'm facing a really strange behavior, which I can't yet reproduce, but it happened 3-4 times ...

 
release

2.3.1

... criteria queries. Fixed a bug in collection change tracking in a new entity object. Fixed merging entity ...

 
release

2.2.4

Release date: 2011-05-09 Download (5.09 MB) Binary:  objectdb-2.2.4.zip You should start by following a  tutorial or reading the manual ...

 
forum_thread

lockfiles in client/server mode

i have an objectdb server running on localhost as user "objectdb", spawned like so: java -server -cp /usr/local/share/objectdb/objectdb.jar: com.objectdb.Server -conf /etc/objectdb/objectdb.conf start it has naturally created and taken ownership of /tmp/ObjectDB. ... will not be created in the default location if you change the temporary path in the configuration file to another path. ...

 
forum_thread

PersistenceException: Failed to locate field

Hi, have recently been running into this issue when changing the schema: com.objectdb.o._PersistenceException: Failed to locate field in this case, adding a primitive String field to an Entity. pretty sure that in the past schema evolution would not have triggered errors, is this case, a simple new field, shouldn't the policy be to add a null in that field, or other default for that primitive. ... old and new enhancement. Please make sure that after the change you only use a clean build of your application with fresh enhancement. ...

 
manual

[ODB1] Chapter 4 - JDO Metadata

Shows how to define JDO metadata for persistence capable classes.... persistence-modifier attribute makes it possible to change the default. Specifying a persistent value, as demonstrated by field ... by default. The default-fetch-group attribute can change the default, as demonstrated by fields f3 and f4 . embedded ...

 
manual

[ODB1] Chapter 3 - Persistent Classes

Explains what a persistence capable class is and which types are supported by JDO.... field is modified during a transaction because the change must be applied to the database when the transaction is committed. ... in the database remains in its old schema without any change. ...