[DB-SIG] Saving composed objects.

2008-07-10 Thread Heston James - Cold Beans
Morning Chaps, I'm looking for your thoughts and advice on saving composed objects to the database using the db API. Where do you place your persistence code? For arguments sake let's look at a simple foo/bar example. We have too classes 'foo' and 'bar', and a 'foo' can have many 'bars' wit

Re: [DB-SIG] Saving composed objects.

2008-07-10 Thread Federico Di Gregorio
On Thu, Jul 10, 2008 at 01:19:02PM +0100, Heston James - Cold Beans wrote: > I'm looking for your thoughts and advice on saving composed objects to the > database using the db API. Where do you place your persistence code? For > arguments sake let's look at a simple foo/bar example. Use one of the

Re: [DB-SIG] Saving composed objects.

2008-07-10 Thread Alex Willmer
On Thu, 2008-07-10 at 19:41 +0200, Federico Di Gregorio wrote: > On Thu, Jul 10, 2008 at 01:19:02PM +0100, Heston James - Cold Beans > wrote: > > I'm looking for your thoughts and advice on saving composed objects > to the > > database using the db API. Where do you place your persistence code? > F