Db4o to preserve identity of objects?

From my experience, running the same query twice on the same ObjectContainer should return the same (identical) objects each time You should not close and reopen the ObjectContainer between the queries, if you need the objects' identity.

From my experience, running the same query twice on the same ObjectContainer should return the same (identical) objects each time. You should not close and reopen the ObjectContainer between the queries, if you need the objects' identity.

Db4o does use IDs and UUIDs internally and you can access those if needed. Also worth reading is this.

– Goran Oct 25 '09 at 17:46 I think this is a valid link: developer. Db4o.Com/Documentation/Reference/db4o-7.4/java/… – Karussell Mar 6 '10 at 18:20.

You can make an id for each object of yours by using it's UUIDs, I mean add an attribute ID for the object and give it UUIDs value and store it, to update an object you can retrieve it by that Id and update it.

Is there a way to preserve an objest identity in db4o. Suppose I store a BigDecimal in embedded db4o. When I read it twice I get two distict objects with the same value (which is quite obvious).

Is there any setting to force db4o to cashe query sersults so that two querries would return reference to the same instance, or do I have to do it myself?

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions