[Zope3-Users] Expressing n:m relationship in ZODB

Janko Hauser jhauser at zscout.de
Tue Jul 11 17:43:48 EDT 2006


Am 11.07.2006 um 23:17 schrieb Achim Domma:

> Hi,
>
> there was a discussion about the bad idea to simulate a relational  
> database in ZODB using indexes and unique ids. So I wonder what's  
> the "correct" way to express a n:m realtionship between objects.
>
> For example: I have projects and articles. An article might be  
> relevant for multiple projects and a project might have multiple  
> relevant articles. Could I simply give each object a list  
> containing the related objects? Or is this kind of circular  
> reference a problem?

As I gathered from discussions, one should first think to use direct  
object references for such relations.

A module which might help in this is
http://svn.zope.org/zc.extrinsicreference/

Would be interesting with what solution you will end.

__Janko

-- 
Janko Hauser  email:  jhauser at zscout.de
               mobile: +49 1721 641552


-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 155 bytes
Desc: Signierter Teil der Nachricht
Url : http://mail.zope.org/pipermail/zope3-users/attachments/20060711/b402db1f/PGP.bin


More information about the Zope3-users mailing list