Re: PB Tutorial (ERROR) and question

2004-01-07 Thread Philippe Hacquin
Hi Brian, nice to hear that; this is the way I handle updates on my objects, and it goes pretty well. To make things clear, tell me if I'm wrong, re-query the object by identity is the only way to get a reference to the object directly from the cache to avoid querying the database (provided OJ

Re: PB Tutorial (ERROR) and question

2004-01-07 Thread Daniel Perry
- 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 th

Re: PB Tutorial (ERROR) and question

2004-01-07 Thread Brian McCallister
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 bound

PB Tutorial (ERROR) and question

2004-01-07 Thread Daniel Perry
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.markDi