Thank you, that works fine :)

-----Original Message-----
From: Jens Kraemer [mailto:[EMAIL PROTECTED]]
Sent: 21 November 2002 07:44
To: OJB Users List
Subject: Re: Problem saving a tree of objects with the PB


On Wed, Nov 20, 2002 at 04:37:34PM -0000, Neil Blue wrote:
> Hello,
> 
> I have an object that contains other simple objects. I have set up the
> mapping file, and can save the whole tree using the ODMG interface with:
> 
> tx.lock(object, Transaction.WRITE);
> 
> but the pb method:
> 
> broker.store(object);
> 
> only seems to store the root object.
> 
> Is this the expected behaviour of the PB interface?

it is, when you don't change the settings of the reference in your
repository.xml:

auto-update="true" in the reference-descriptor tells the PB to store
referenced objects, too. Note that using auto-update=true is not
compatible with using the odmg-API since then references would be stored
twice, once by ODMG and a second time by PB.

hth,
Jens

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to