Hi all. 

Something that still bothers me when using OJB is the way I have to 
manage my non-decomposed m:n relationships. 

Because the indirection tabel is not directly accessible as domain objects,
I have to fill a vector with references to the related objects, 
and then do a store on the main object. 

OJB will then delete all the n:m relation entries for that object in the 
indirection tabel, and then recreate them from the collection. 
(As far as i can see using the P6spy and the sources)

I would think it would be easier and more efficient if there would 
be a method "link" that would insert a relation, and a method "unlink" that 
would remove a relationship.  Without such methods I will always have 
unneccessary store actions on the main object. 

[Note that I am only using the Perstince Broker, not the higher level API's]

An alternative would be to use a collection that would implement this 
under its covers, so it would do "link" and "unlink" via its interface methods
add(Object), addAll(Collection), remove(Object) removeAll(Collection).

Is there anyone out there using n:m collections that found a way to 
avoid these redundant stores and deleta activities ? 


Regards,
        Theo 



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

Reply via email to