Thanks,
That makes sense. Though in my current application there is practically no
chance of objects being concurrently updated.  And if it did happen, it
wouldn;t really matter.
However in future projects, i can see i will need to use transactions.

Thanks,
Daniel.
----- Original Message ----- 
From: "Brian McCallister" <[EMAIL PROTECTED]>
To: "OJB Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, January 07, 2004 2:28 PM
Subject: Re: PB Tutorial (ERROR) and question


> On the tutorial type -- thank you! I just fixed in OJB_1_0 and HEAD =)
>
> On the ODMG markDirty / store thing... I don't know for sure, but there
> is a potential for lost updates when using markDirty(...). The practice
> I have had recommended, and use, is to just re-query it by identity in
> the bounds of a transaction and make the changes, rather than modifying
> a persistent object outside of a transaction and forcing changes back
> in.
>
> -Brian
>
> On Jan 7, 2004, at 5:49 AM, Daniel Perry wrote:
>
> > I was just reading the tutorial on the PB API, and came accross a
> > slight error:
> > In the "Deleting Persistent Objects",
> > PersistenceBrokerFactory.defaultPersistenceBroker();
> > Should be:
> > broker = PersistenceBrokerFactory.defaultPersistenceBroker();
> >
> > One more thing, using ODMG i have been doing tx.markDirty(object) to
> > update an object outside of a transaction. If i do a
> > broker.store(object) outside of a transaction will this have the same
> > effect?
> >
> > Thanks,
> > Daniel.
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


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

Reply via email to