~ubuntu-branches/debian/jessie/sqlalchemy/jessie

« back to all changes in this revision

Viewing changes to examples/poly_assoc/__init__.py

  • Committer: Bazaar Package Importer
  • Author(s): Piotr Ożarowski
  • Date: 2011-08-01 23:18:16 UTC
  • mfrom: (1.4.15 upstream) (16.1.14 experimental)
  • Revision ID: james.westby@ubuntu.com-20110801231816-6lx797pi3q1fpqst
Tags: 0.7.2-1
* New upstream release
* Bump minimum required python-mako version to 0.4.1 (closes: 635898)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
"""
2
 
Illustrates polymorphic associations, a method of associating a particular child object with many different types of parent object.
3
 
 
4
 
This example is based off the original blog post at `<http://techspot.zzzeek.org/?p=13>`_ and illustrates three techniques:
5
 
 
6
 
* ``poly_assoc.py`` - imitates the non-foreign-key schema used by Ruby on Rails' Active Record.
7
 
* ``poly_assoc_fk.py`` - Adds a polymorphic association table so that referential integrity can be maintained.
8
 
* ``poly_assoc_generic.py`` - further automates the approach of ``poly_assoc_fk.py`` to also generate the association table definitions automatically.
9
 
 
10
 
"""
 
 
b'\\ No newline at end of file'