tags:

views:

183

answers:

1

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 ?

A: 

Hi!

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

Goran
the link is broken
lbownik
Both work for me... which one?
Goran
I think this is a valid link: http://developer.db4o.com/Documentation/Reference/db4o-7.4/java/reference/html/reference/implementation_strategies/ids_and_uuids.html
Karussell