db4o can generate UUIDs for each stored object. These UUIDs are mainly used for replication together with commit timestamps. Of course it can be used also for other purposes.
You can enable UUIDs for all objects. Set the global scope on the UUID setting.
IEmbeddedConfiguration configuration = Db4oEmbedded.NewConfiguration(); configuration.File.GenerateUUIDs = ConfigScope.Globally;
Dim configuration As IEmbeddedConfiguration = Db4oEmbedded.NewConfiguration() configuration.File.GenerateUUIDs = ConfigScope.Globally
You can also enable uuids only for certain classes:
IEmbeddedConfiguration configuration = Db4oEmbedded.NewConfiguration(); configuration.File.GenerateUUIDs = ConfigScope.Individually; configuration.Common.ObjectClass(typeof (SpecialClass)).GenerateUUIDs(true);
Dim configuration As IEmbeddedConfiguration = Db4oEmbedded.NewConfiguration() configuration.File.GenerateUUIDs = ConfigScope.Individually configuration.Common.ObjectClass(GetType(SpecialClass)).GenerateUUIDs(True)