summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2011-04-28 12:33:30 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2011-04-28 12:33:30 -0400
commit46daefe5b09192b1669be4fe48e84faa8d54008c (patch)
treefa2b850d8e3231de148d70a6eae9b0236b5b4f5f /examples
parent425b7388cc7808751bd73a647c05fc669ea6dbbf (diff)
downloadsqlalchemy-46daefe5b09192b1669be4fe48e84faa8d54008c.tar.gz
update docs for generic associations
Diffstat (limited to 'examples')
-rw-r--r--examples/generic_associations/__init__.py13
1 files changed, 10 insertions, 3 deletions
diff --git a/examples/generic_associations/__init__.py b/examples/generic_associations/__init__.py
index 7e94694fe..b166d9161 100644
--- a/examples/generic_associations/__init__.py
+++ b/examples/generic_associations/__init__.py
@@ -4,14 +4,21 @@ parents with a particular child object.
The examples all use the declarative extension along with
declarative mixins. Each one presents the identical use
-case at the end - two clases, ``Customer`` and ``Supplier``, both
+case at the end - two classes, ``Customer`` and ``Supplier``, both
subclassing the ``HasAddresses`` mixin, which ensures that the
parent class is provided with an ``addresses`` collection
which contains ``Address`` objects.
+The configurations include:
+
+* ``table_per_related.py`` - illustrates a distinct table per related collection.
+* ``table_per_association.py`` - illustrates a shared collection table, using a
+ table per association.
+* ``discriminator_on_association.py`` - shared collection table and shared
+ association table, including a discriminator column.
+
The ``discriminator_on_association.py`` script in particular is a modernized
version of the "polymorphic associations" example present in older versions of
-SQLAlchemy.
-
+SQLAlchemy, originally from the blog post at http://techspot.zzzeek.org/2007/05/29/polymorphic-associations-with-sqlalchemy/.
""" \ No newline at end of file