Re: AW: [OJB-developers] Let's fix the testsuite!
Brought to you by:
thma
From: Oleg N. <on...@uk...> - 2002-05-28 19:49:32
|
Hi Thomas, On Tuesday 28 May 2002 10:14, Mahler Thomas wrote: > > But maybe there are some problems with this? > > I don't see any. in storeMtoNImplementor() we should check if an entry > already exists. If so do nothing, else insert a new entry. No you mean repetitive database lookups? > > BTW I wonder if the current algorithm works when some link > > between Persons > > and Projects is removed. > > Currently there is no support to remove m:n entries automatically. They > have to be deleted manually. I see. To achieve this we should either remember the original state of the m:n relation or to read the set of all indirection instances from the database in storeMtoNImplementor(), then compare them against the current set of indirection instances in memory, then insert/delete the two differences of two sets. Then there is no need in multiple database lookups. > I'll have a look at 4. and 5. then! Okay! :) Thanks, Oleg |