Re: [SQLObject] thoughts on structure and components
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: Bud P. B. <bu...@si...> - 2003-05-12 15:41:06
|
On 08 May 2003 22:13:51 -0500 Ian Bicking <ia...@co...> wrote: > Now, if I'm reading it right, this would be the most significant > difference with SQLObject -- a mapping object is a separate from the > class. But why? Ian, I made some progress and I can more clearly answer to the question above: In this approach, relationships are instances managed by Mapping, not part of the "class" (of the storable application object). This way, to keep object references from the relationship object to the contained (from, to..) "table objects" (that I call ObjMap). I can also keep back-references from ObjMap to all the relations that reference it. This way, I avoid (at least it seems at the moment) all problems of circular dependencies, referencing to objects only by name, etc. --b /----------------------------------------------------------------- | Bud P. Bruegger, Ph.D. | Sistema (www.sistema.it) | Via U. Bassi, 54 | 58100 Grosseto, Italy | +39-0564-411682 (voice and fax) \----------------------------------------------------------------- |