On Friday 03 October 2008 10:11, Sam wrote:
> 
> > > Did you test this ? Last time I tried this, db4o wasn't 
> > storing inner 
> > > complex objects and I had to manually store them.
> > > 
> > > See contexts and properties in Identity.java.
> > > If this really isn't necessary, you can remove it from there too.
> > 
> > I did not test it. I thought that one part of the use of db4o 
> > is that you do not have to store inner complex objects manually? 
> > Is it maybe possible to do this with db4o somehow?
> > 
> 
> I will use toad's suggestion to fix this:

It's not really a good solution: since you don't control the internal 
structures, you don't know how far you need to go. In the db4o branch (much 
bigger), I generally create a tag object and do a query (look at e.g. 
PersistentCooldownItem/Queue).
> 
> > -----Original Message-----
> > From: devl-bounces at freenetproject.org 
> > [mailto:devl-bounces at freenetproject.org] On Behalf Of Matthew Toseland
> > Sent: Wednesday, September 24, 2008 9:14 PM
> > To: devl at freenetproject.org
> > Subject: Re: [freenet-dev] [freenet-cvs] r22761 - trunk/plugins/WoT
> > 
> > On Tuesday 23 September 2008 12:10, xor at freenetproject.org wrote:
> > > Author: xor
> > > Date: 2008-09-23 11:10:49 +0000 (Tue, 23 Sep 2008) New 
> > Revision: 22761
> > > 
> > > Modified:
> > >    trunk/plugins/WoT/Config.java
> > >    trunk/plugins/WoT/WoT.java
> > > Log:
> > > Change the Config class so that it does not store a reference to a 
> > > db4o
> > ObjectContainer. This is not its job.
> > 
> > Make sure you store when you change something. Setting 
> > cascading updates on Config may be the easiest way to ensure 
> > that the HashMap is properly saved to the database, assuming 
> > Config doesn't reference the rest of the WoT plugin.
> > > 
> 
> _______________________________________________
> Devl mailing list
> Devl at freenetproject.org
> http://emu.freenetproject.org/cgi-bin/mailman/listinfo/devl
> 
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 827 bytes
Desc: not available
URL: 
<https://emu.freenetproject.org/pipermail/devl/attachments/20081003/49c0fe72/attachment.pgp>

Reply via email to