About execute

forum_thread

DB Doctor sets type to "unknown" for new fields

Hi, we are using ObjectDB 2.5.4_04 on Linux. We added two new Boolean fields to a persistable type and run DB Doctor on the exiting DB file in order to update the schema. The fields are added to the schema as expected, however their type is set to unknown - we were expecting Boolean. The attached DB file is what was produced by DB Doctor after adding the emergency and broadcast fields. If you run in DB Explorer #1 2014-05-29 03:04 Hi, we are using ObjectDB 2.5.4_04 on Linux. We added two new Boolean fields to a persistable typ ...

 
manual

[ODB1] Chapter 6 - Persistent Objects

Shows how to store, retrieve, update and delete database objects. This chapter describes how to use ObjectDB to manage database objects. It includes the following section: 6.1  Making Objects Persistent 6.2  Object IDs and Names 6.3  Retrieving Persistent Objects 6.4  M ...

 
forum_thread

ODB should auto-restart if it detects it's necessary

Hi! I find very tricky the need to restart ObjectDB server after schema modifications in a distributed environment. Moreover, not doing it does sometimes trigger ugly errors, which mean application downtime. It might be very useful to have an additional feature (that could be enabled/disabled in objectdb.config) that each time ObjectDB detects a schema change that requires restart, it should automatically restart itself. This way we save a lot of headaches from our dev. ops. Currently we have to manually do: #1 2014-03-29 08:33 Hi! I find very tricky the need to restart ObjectDB server after schema modifications in a distributed en ...

 
forum_thread

Removing objects where ManyToMany relationships exist

Consider you have an entity Entity with the following unidirectional relationship: @ManyToMany private Set<OtherEntity> setOfOtherEntities; public Set<OtherEntity> getOtherEntities() {     if (setOfOtherEntities == null) {       setOfOtherEntities = new TreeSet<OtherEntity>();     }     return setOfOtherEntities;   } #1 2011-10-17 09:06 Consider you have an entity Entity with the following unidirectional relationship: @ManyToMany privat ...

 
issue

ArrayIndexOutOfBounds with Critera API and function call

Hello, This is getting really frustrating sorry but we're close before delivering our app to our customer and went against a show-stopper again. We're building a simple query with the criteria api. What we have is something like (pseudo code) Bug Version: 1.04 Priority: High Status: Closed Replies: 3 Type:  Bug ...

 
forum_thread

Insert time increases as db grows.

Hello, #1 2012-12-18 22:22 Hello, I've just installed ObjectDB and done some tests. I'm inserting 22k of records like 10k it ...

 
forum_thread

Dirty checking

Hi, wondering if anyone knows the best way to detect which objects have been changed in the database. ie: which objects, and which collections of objects, have been dirtied.     ... ie I can guarentee that no other transactions will execute until I've generated the readonly observable view queries, if that ...

 
forum_thread

One transaction or two?

If I have a large number of objects to delete and then add to a PersistenceManager is it more efficient to do everything in one transaction or two? Currently my code looks like this: #1 2011-08-24 21:39 If I have a large number of objects to delete and then add to a PersistenceManager is it more efficient to do eve ...

 
forum_thread

Source not found error after downloading ObjectDB 2.3.7_04

Code snippet: Properties prop = new Properties(); prop.setProperty("javax.jdo.PersistenceManagerFactoryClass","com.objectdb.jdo.PMF"); prop.setProperty("javax.jdo.option.ConnectionUR","local.odb"); PersistenceManagerFactory pmf = JDOHelper.getPersistenceManagerFactory(prop); PersistenceManager pm = pmf.getPersistenceManager();   I am getting an error Source attachment does not contain source for File PMF.class. ... is not your code). This error is not expected if you execute the line with Step Over (F6) rather than with Step Into (F5). ...

 
issue

[ObjectDB 2.4.1] Unexpected exception (Error 990) on getObjectById

In this code: String id = "my key"; itemDb = pm.getObjectById(ABC.class, id); I get this: Bug Version: 2.4.1 Priority: Normal Status: Closed Replies: 3 Type:  Bug ...